| 
    queso-0.55.0
    
   | 
 
Class for vector operations (virtual). More...
#include <Vector.h>


Public Member Functions | |
Constructor/Destructor methods  | |
| Vector (const BaseEnvironment &env, const Map &map) | |
| Shaped Constructor.  More... | |
| virtual | ~Vector () | 
| Virtual Destructor.  More... | |
Environment and Map methods  | |
| const BaseEnvironment & | env () const | 
| const Map & | map () const | 
| unsigned int | numOfProcsForStorage () const | 
Attribute methods  | |
| virtual unsigned int | sizeLocal () const =0 | 
| Returns the local size of the vector.  More... | |
| virtual unsigned int | sizeGlobal () const =0 | 
| Returns the global size of the vector.  More... | |
Get/Set methods  | |
| virtual void | cwSet (double value)=0 | 
Component-wise set the values of the vector to value.  More... | |
| virtual void | cwSetGaussian (double mean, double stdDev)=0 | 
| Component-wise set the values of the vector to a random number from a Gaussian distribution.  More... | |
| virtual void | cwInvert ()=0 | 
| Component-wise invert the values of the vector.  More... | |
I/O and Miscellaneous methods  | |
| virtual void | sort ()=0 | 
| Sort the elements.  More... | |
| virtual void | print (std::ostream &os) const =0 | 
| Print this vector.  More... | |
| void | setPrintHorizontally (bool value) const | 
| Determines whether vector should be printed horizontally.  More... | |
| bool | getPrintHorizontally () const | 
| Checks if vector is printed horizontally.  More... | |
| void | setPrintScientific (bool value) const | 
| Determines whether vector should be printed in Scientific Notation.  More... | |
| bool | getPrintScientific () const | 
| Checks if the vector should be printed in Scientific Notation.  More... | |
Protected Member Functions | |
| virtual void | base_copy (const Vector &src) | 
Copies base data from vector src to this vector.  More... | |
Protected Attributes | |
| const BaseEnvironment & | m_env | 
| Environment variable.  More... | |
| const Map & | m_map | 
| Mapping variable.  More... | |
| bool | m_printHorizontally | 
| Flag for either or not print this matrix horizontally.  More... | |
| bool | m_printScientific | 
| Flag for either or not print this matrix in scientific notation.  More... | |
Private Member Functions | |
| Vector () | |
| Default Constructor.  More... | |
Class for vector operations (virtual).
Base vector class. The vector class is an abstract class designed to be used as a base class for different vector implementations (all actual vector classes in QUESO).
| QUESO::Vector::Vector | ( | const BaseEnvironment & | env, | 
| const Map & | map | ||
| ) | 
Shaped Constructor.
Definition at line 31 of file Vector.C.
      
  | 
  virtual | 
      
  | 
  private | 
Default Constructor.
Copies base data from vector src to this vector. 
Definition at line 101 of file Vector.C.
References m_printHorizontally, and m_printScientific.
Referenced by QUESO::GslVector::copy().
      
  | 
  pure virtual | 
Component-wise invert the values of the vector.
Implemented in QUESO::GslVector.
      
  | 
  pure virtual | 
Component-wise set the values of the vector to value. 
Implemented in QUESO::GslVector.
      
  | 
  pure virtual | 
Component-wise set the values of the vector to a random number from a Gaussian distribution.
Implemented in QUESO::GslVector.
| const BaseEnvironment & QUESO::Vector::env | ( | ) | const | 
| bool QUESO::Vector::getPrintHorizontally | ( | ) | const | 
Checks if vector is printed horizontally.
Definition at line 82 of file Vector.C.
References m_printHorizontally.
Referenced by QUESO::GslVector::subWriteContents().
| bool QUESO::Vector::getPrintScientific | ( | ) | const | 
Checks if the vector should be printed in Scientific Notation.
Definition at line 95 of file Vector.C.
References m_printScientific.
Referenced by QUESO::GslVector::subWriteContents().
| const Map & QUESO::Vector::map | ( | ) | const | 
Definition at line 61 of file Vector.C.
References m_map.
Referenced by QUESO::GslVector::GslVector(), and QUESO::matrixProduct().
| unsigned int QUESO::Vector::numOfProcsForStorage | ( | ) | const | 
Definition at line 68 of file Vector.C.
References QUESO::Map::Comm(), m_map, and QUESO::MpiComm::NumProc().
Referenced by QUESO::GslVector::subReadContents(), and QUESO::GslVector::subWriteContents().
      
  | 
  pure virtual | 
Print this vector.
Implemented in QUESO::GslVector.
| void QUESO::Vector::setPrintHorizontally | ( | bool | value | ) | const | 
Determines whether vector should be printed horizontally.
Definition at line 75 of file Vector.C.
References m_printHorizontally.
Referenced by QUESO::GslVector::subWriteContents().
| void QUESO::Vector::setPrintScientific | ( | bool | value | ) | const | 
Determines whether vector should be printed in Scientific Notation.
Definition at line 88 of file Vector.C.
References m_printScientific.
Referenced by QUESO::GslVector::subWriteContents().
      
  | 
  pure virtual | 
Returns the global size of the vector.
Implemented in QUESO::GslVector.
      
  | 
  pure virtual | 
Returns the local size of the vector.
Implemented in QUESO::GslVector.
      
  | 
  pure virtual | 
Sort the elements.
Implemented in QUESO::GslVector.
      
  | 
  protected | 
Environment variable.
Definition at line 117 of file Vector.h.
Referenced by QUESO::GslVector::cwSetBeta(), QUESO::GslVector::cwSetGamma(), QUESO::GslVector::cwSetGaussian(), QUESO::GslVector::cwSetInverseGamma(), QUESO::GslVector::cwSetUniform(), env(), QUESO::GslVector::subReadContents(), and QUESO::GslVector::subWriteContents().
      
  | 
  protected | 
Mapping variable.
Definition at line 126 of file Vector.h.
Referenced by QUESO::GslVector::GslVector(), map(), numOfProcsForStorage(), QUESO::GslVector::sizeGlobal(), and QUESO::GslVector::sizeLocal().
      
  | 
  mutableprotected | 
Flag for either or not print this matrix horizontally.
Definition at line 130 of file Vector.h.
Referenced by base_copy(), getPrintHorizontally(), QUESO::GslVector::print(), and setPrintHorizontally().
      
  | 
  mutableprotected | 
Flag for either or not print this matrix in scientific notation.
Definition at line 133 of file Vector.h.
Referenced by base_copy(), getPrintScientific(), QUESO::GslVector::print(), and setPrintScientific().