25 #include <queso/Vector.h>
26 #include <queso/Defines.h>
39 "Vector::constructor(), default",
40 "should not be used by user");
48 m_printHorizontally(true),
49 m_printScientific (false)
68 "Vector::constructor(), copy",
69 "code should not execute through here");
83 "Vector::operator=()",
84 "code should not execute through here");
94 "Vector::operator*=()",
95 "code should not execute through here");
96 double tmpA = a; tmpA += 1.;
106 "Vector::operator/=()",
107 "code should not execute through here");
108 double tmpA = a; tmpA += 1.;
118 "Vector::operator+=()",
119 "code should not execute through here");
129 "Vector::operator-=()",
130 "code should not execute through here");
unsigned int numOfProcsForStorage() const
int NumProc() const
Returns total number of processes.
const Map & m_map
Mapping variable.
int worldRank() const
Returns the process world rank.
bool getPrintHorizontally() const
Checks if vector is printed horizontally.
void setPrintHorizontally(bool value) const
Determines whether vector should be printed horizontally.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
A class for partitioning vectors and matrices.
bool m_printScientific
Flag for either or not print this matrix in scientific notation.
Vector & operator/=(double a)
Operator for division of the vector by a scalar.
Vector & operator-=(const Vector &rhs)
Operator for subtraction (element-wise) of two vectors.
bool getPrintScientific() const
Checks if the vector should be printed in Scientific Notation.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Vector & operator=(const Vector &rhs)
Operator for copying a vector.
const BaseEnvironment & m_env
Environment variable.
Vector & operator+=(const Vector &rhs)
Operator for addition (element-wise) of two vectors.
The QUESO MPI Communicator Class.
Vector & operator*=(double a)
Operator for multiplication of the vector by a scalar.
virtual void copy(const Vector &src)
Copies vector src to this matrix.
const int UQ_INVALID_INTERNAL_STATE_RC
virtual ~Vector()
Virtual Destructor.
void setPrintScientific(bool value) const
Determines whether vector should be printed in Scientific Notation.
const BaseEnvironment & env() const
const MpiComm & Comm() const
Access function for MpiComm communicator.
#define RawValue_MPI_COMM_SELF
This class sets up the environment underlying the use of the QUESO library by an executable.
bool m_printHorizontally
Flag for either or not print this matrix horizontally.
Vector()
Default Constructor.
Class for vector operations (virtual).