VMPS++
Loading...
Searching...
No Matches
DmrgConglutinations.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  BLOCK_POSITION { SAME_PLACE , BOTTOM_RIGHT , RIGHT , BOTTOM }
 

Functions

template<typename MatrixType1 , typename MatrixType2 >
void addBottomRight (const MatrixType1 &Min, MatrixType2 &Mout)
 
template<typename MatrixType1 , typename MatrixType2 >
void addRight (const MatrixType1 &Min, MatrixType2 &Mout)
 
template<typename MatrixType1 , typename MatrixType2 >
void addRight_makeSquare (const MatrixType1 &Min, MatrixType2 &Mout)
 
template<typename MatrixType1 , typename MatrixType2 >
void addBottom (const MatrixType1 &Min, MatrixType2 &Mout)
 
template<typename MatrixType1 , typename MatrixType2 >
void addBottom_makeSquare (const MatrixType1 &Min, MatrixType2 &Mout)
 
template<typename MatrixType1 , typename MatrixType2 >
void addPos (const MatrixType1 &Min, MatrixType2 &Mout, BLOCK_POSITION POS)
 
template<typename MatrixType >
void remove_col (size_t i, MatrixType &M)
 
template<typename MatrixType >
void remove_row (size_t i, MatrixType &M)
 

Enumeration Type Documentation

◆ BLOCK_POSITION

Enumerator
SAME_PLACE 
BOTTOM_RIGHT 
RIGHT 
BOTTOM 

Definition at line 131 of file DmrgConglutinations.h.

Function Documentation

◆ addBottom()

template<typename MatrixType1 , typename MatrixType2 >
void addBottom ( const MatrixType1 &  Min,
MatrixType2 &  Mout 
)

Conglutinates two matrices by adding to the bottom. Columns must match or one of the two has to be empty.

Note
Two template parameters are needed in order insert a scaled matrix, which makes a different type in Eigen.
Parameters
Min: matrix to be added
Mout: matrix written to

If Mout empty, set Min = Mout

If Min also empty, do nothing.

Definition at line 83 of file DmrgConglutinations.h.

◆ addBottom_makeSquare()

template<typename MatrixType1 , typename MatrixType2 >
void addBottom_makeSquare ( const MatrixType1 &  Min,
MatrixType2 &  Mout 
)

If Mout empty, set Min = Mout

If Min also empty, do nothing.

Definition at line 107 of file DmrgConglutinations.h.

◆ addBottomRight()

template<typename MatrixType1 , typename MatrixType2 >
void addBottomRight ( const MatrixType1 &  Min,
MatrixType2 &  Mout 
)

Conglutinates two matrices by applying a direct sum.

Note
Two template parameters are needed in order insert a scaled matrix, which makes a different type in Eigen.
Parameters
Min: matrix to be added
Mout: matrix written to

Definition at line 9 of file DmrgConglutinations.h.

◆ addPos()

template<typename MatrixType1 , typename MatrixType2 >
void addPos ( const MatrixType1 &  Min,
MatrixType2 &  Mout,
BLOCK_POSITION  POS 
)

Definition at line 134 of file DmrgConglutinations.h.

◆ addRight()

template<typename MatrixType1 , typename MatrixType2 >
void addRight ( const MatrixType1 &  Min,
MatrixType2 &  Mout 
)

Conglutinates two matrices by adding to the right. Rows must match or one of the two has to be empty.

Note
Two template parameters are needed in order insert a scaled matrix, which makes a different type in Eigen.
Parameters
Min: matrix to be added
Mout: matrix written to

If Mout empty, set Min = Mout

If Min also empty, do nothing.

Definition at line 29 of file DmrgConglutinations.h.

◆ addRight_makeSquare()

template<typename MatrixType1 , typename MatrixType2 >
void addRight_makeSquare ( const MatrixType1 &  Min,
MatrixType2 &  Mout 
)

If Mout empty, set Min = Mout

If Min also empty, do nothing.

Definition at line 53 of file DmrgConglutinations.h.

◆ remove_col()

template<typename MatrixType >
void remove_col ( size_t  i,
MatrixType &  M 
)

Removes a column of a matrix. Might be useful to remove zero columns before doing SVD and such.

Parameters
i: column to be removed
M: apply to this matrix

Definition at line 146 of file DmrgConglutinations.h.

◆ remove_row()

template<typename MatrixType >
void remove_row ( size_t  i,
MatrixType &  M 
)

Removes a row of a matrix. Might be useful to remove zero rows before doing SVD and such.

Parameters
i: row to be removed
M: apply to this matrix

Definition at line 162 of file DmrgConglutinations.h.