Matrix with pending scale, submatrix and/or transpose operations. More...
#include <matrix.h>
Public Member Functions | |
int | nRows () const |
int | nCols () const |
complex | conjOp (complex a) const |
return conjugate if op requires it | |
int | index (int i, int j) const |
Index to mat.data() with transpose/submatrix. | |
matrixScaledTransOp (const matrix &mat, double scale=1., CBLAS_TRANSPOSE op=CblasNoTrans) | |
Create from a matrix with an optional scale and op: | |
matrixScaledTransOp (const scaled< matrix > &smat, CBLAS_TRANSPOSE op=CblasNoTrans) | |
Create from a scaled matrix, with an optional op. | |
matrixScaledTransOp (const matrix &mat, int iStart, int iStop, int jStart, int jStop, double scale=1.) | |
Create from a matrix with sub-matrix indexing and an optional scale. | |
operator matrix () const | |
convert to matrix | |
matrixScaledTransOp & | operator*= (double s) |
matrixScaledTransOp | operator* (double s) const |
Public Attributes | |
const matrix & | mat |
matrix | |
double | scale |
pending scale factor | |
int | iStart |
int | iDelta |
int | jStart |
int | jDelta |
sub-matrix indexing (applies to mat before transpose) | |
CBLAS_TRANSPOSE | op |
pending operation (none, transpose or dagger) | |
Friends | |
matrixScaledTransOp | operator* (double s, const matrixScaledTransOp &A) |
Matrix with pending scale, submatrix and/or transpose operations.