JDFTx  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
matrixScaledTransOp Struct Reference

Matrix with a pending scale and transpose operation. 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 into data() with possible transpose.
 
 matrixScaledTransOp (const matrix &mat, double scale=1.0, 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.
 
 operator matrix () const
 convert to matrix
 
matrixScaledTransOpoperator*= (double s)
 
matrixScaledTransOp operator* (double s) const
 

Public Attributes

const matrixmat
 matrix
 
double scale
 pending scale factor
 
CBLAS_TRANSPOSE op
 pending operation (none, transpose or dagger)
 

Friends

matrixScaledTransOp operator* (double s, const matrixScaledTransOp &A)
 

Detailed Description

Matrix with a pending scale and transpose operation.


The documentation for this struct was generated from the following file: