|
cppqed-multidiagonal 0.4.0
Multidiagonal sparse operator algebra for C++QED
|
Functions | |
| MultiDiagonal< 1 > | identity (size_t dim) |
Constructs the rank-1 identity operator of dimension dim. | |
|
inline |
Constructs the rank-1 identity operator of dimension dim.
Rank-1 identity operator: a single main diagonal (signed offset 0) filled with 1.
(This could be compiled separately, but let’s not drop header-onliness for a single function)