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");
Vector & operator+=(const Vector &rhs)
Operator for addition (element-wise) of two vectors.
Vector()
Default Constructor.
bool m_printHorizontally
Flag for either or not print this matrix horizontally.
Vector & operator*=(double a)
Operator for multiplication of the vector by a scalar.
bool getPrintHorizontally() const
Checks if vector is printed horizontally.
virtual void copy(const Vector &src)
Copies vector src to this matrix.
void setPrintHorizontally(bool value) const
Determines whether vector should be printed horizontally.
int worldRank() const
Returns the process world rank.
Vector & operator/=(double a)
Operator for division of the vector by a scalar.
bool m_printScientific
Flag for either or not print this matrix in scientific notation.
unsigned int numOfProcsForStorage() const
Class for vector operations (virtual).
const BaseEnvironment & m_env
Environment variable.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Vector & operator-=(const Vector &rhs)
Operator for subtraction (element-wise) of two vectors.
void setPrintScientific(bool value) const
Determines whether vector should be printed in Scientific Notation.
const MpiComm & Comm() const
Access function for MpiComm communicator.
const Map & m_map
Mapping variable.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
virtual ~Vector()
Virtual Destructor.
This class sets up the environment underlying the use of the QUESO library by an executable.
const int UQ_INVALID_INTERNAL_STATE_RC
bool getPrintScientific() const
Checks if the vector should be printed in Scientific Notation.
The QUESO MPI Communicator Class.
A class for partitioning vectors and matrices.
Vector & operator=(const Vector &rhs)
Operator for copying a vector.
const BaseEnvironment & env() const
#define RawValue_MPI_COMM_SELF
int NumProc() const
Returns total number of processes.