JDFTx  1.7.0
diagMatrix Class Reference

Real diagonal matrix. More...

#include <matrix.h>

Inheritance diagram for diagMatrix:

Public Member Functions

 diagMatrix (int N=0, double d=0.)
 
int nRows () const
 
int nCols () const
 
bool isScalar (double absTol=1e-14, double relTol=1e-14) const
 Check if all entries are identical within threshold.
 
diagMatrixoperator*= (double s)
 
diagMatrix operator() (int iStart, int iStop) const
 get submatrix of elements (iStart <= i < iStop)
 
diagMatrix operator() (int iStart, int iStep, int iStop) const
 get submatrix of elements (iStart <= i < iStop) with arbitrary increments
 
void set (int iStart, int iStop, const diagMatrix &m)
 set submatrix to m
 
void set (int iStart, int iStep, int iStop, const diagMatrix &m)
 set submatrix to m at arbitrary increments
 
void scan (FILE *fp)
 read (ascii) from stream
 
void print (FILE *fp, const char *fmt="%lg\t") const
 print (ascii) to stream
 

Detailed Description

Real diagonal matrix.


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