JDFTx  1.1.2
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
 
diagMatrix operator() (int iStart, int iStep, int iStop) const
 get submatrix of elements (iStart <= i < iStop)
 
void set (int iStart, int iStop, const diagMatrix &m)
 get submatrix of elements (iStart <= i < iStop) with arbitrary increments
 
void set (int iStart, int iStep, int iStop, const diagMatrix &m)
 set submatrix to m
 
void scan (FILE *fp)
 set submatrix to m at arbitrary increments More...
 
void print (FILE *fp, const char *fmt="%lg\t") const
 print (ascii) to stream
 
void send (int dest, int tag=0) const
 
void recv (int src, int tag=0)
 
void bcast (int root=0)
 
void allReduce (MPIUtil::ReduceOp op, bool safeMode=false)
 

Detailed Description

Real diagonal matrix.

Member Function Documentation

void diagMatrix::scan ( FILE *  fp)

set submatrix to m at arbitrary increments

read (ascii) from stream


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