28 #include <queso/Environment.h>
29 #include <queso/Map.h>
31 #include <queso/Defines.h>
69 virtual unsigned int sizeLocal ()
const = 0;
78 virtual void cwSet (
double value) = 0;
91 virtual void sort () = 0;
95 virtual void print (std::ostream& os)
const = 0;
119 #ifdef QUESO_CLASSES_INSTANTIATE_NEW_MAPS
142 #endif // UQ_VECTOR_H
void setPrintScientific(bool value) const
Determines whether vector should be printed in Scientific Notation.
A class for partitioning vectors and matrices.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
bool getPrintHorizontally() const
Checks if vector is printed horizontally.
virtual void sort()=0
Sort the elements.
bool m_printHorizontally
Flag for either or not print this matrix horizontally.
const BaseEnvironment & m_env
Environment variable.
virtual void base_copy(const Vector &src)
Copies base data from vector src to this vector.
bool m_printScientific
Flag for either or not print this matrix in scientific notation.
virtual unsigned int sizeGlobal() const =0
Returns the global size of the vector.
virtual void cwInvert()=0
Component-wise invert the values of the vector.
virtual void print(std::ostream &os) const =0
Print this vector.
virtual void cwSet(double value)=0
Component-wise set the values of the vector to value.
unsigned int numOfProcsForStorage() const
const Map m_map
Mapping variable.
Class for vector operations (virtual).
bool getPrintScientific() const
Checks if the vector should be printed in Scientific Notation.
const BaseEnvironment & env() const
virtual ~Vector()
Virtual Destructor.
void setPrintHorizontally(bool value) const
Determines whether vector should be printed horizontally.
Vector()
Default Constructor.
virtual void cwSetGaussian(double mean, double stdDev)=0
Component-wise set the values of the vector to a random number from a Gaussian distribution.
const Map & m_map
Mapping variable.
virtual unsigned int sizeLocal() const =0
Returns the local size of the vector.