25 #include <queso/Matrix.h>
26 #include <queso/Defines.h>
38 "Matrix::constructor(), default",
39 "should not be used by user");
47 m_printHorizontally(true),
60 "Matrix::constructor(), copy",
61 "code should not execute through here");
75 "Matrix::operator=()",
76 "code should not execute through here");
86 "Matrix::operator*=()",
87 "code should not execute through here");
88 double tmpA = a; tmpA += 1.;
98 "Matrix::operator+=()",
99 "code should not execute through here");
109 "Matrix::operator-=()",
110 "code should not execute through here");
The QUESO MPI Communicator Class.
A class for partitioning vectors and matrices.
const BaseEnvironment & env() const
Matrix & operator*=(double a)
Operator for multiplication of the matrix by a scalar.
int worldRank() const
Returns the process world rank.
Matrix & operator-=(const Matrix &rhs)
Operator for subtraction (element-wise) of two matrices.
int NumProc() const
Returns total number of processes.
Matrix()
Default constructor.
This class sets up the environment underlying the use of the QUESO library by an executable.
const int UQ_INVALID_INTERNAL_STATE_RC
virtual void copy(const Matrix &src)
Copies matrix src to this matrix.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Class for matrix operations (virtual).
const MpiComm & Comm() const
Access function for MpiComm communicator.
bool m_inDebugMode
Flag for either or not QUESO is in debug mode.
Matrix & operator=(const Matrix &rhs)
Operator for copying a matrix.
virtual ~Matrix()
Virtual Destructor.
const Map & m_map
Mapping variable.
bool getInDebugMode() const
Checks if QUESO will run through this class in debug mode.
bool m_printHorizontally
Flag for either or not print this matrix.
#define RawValue_MPI_COMM_SELF
const BaseEnvironment & m_env
QUESO environment variable.
bool getPrintHorizontally() const
Checks if matrix will be is printed horizontally.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Matrix & operator+=(const Matrix &rhs)
Operator for addition (element-wise) of two matrices.
void setInDebugMode(bool value) const
Determines whether QUESO will run through this class in debug mode.
unsigned int numOfProcsForStorage() const
void setPrintHorizontally(bool value) const
Determines whether the matrix should be printed horizontally.