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