FV3 Bundle
|
ObsVector class to handle vectors in observation space for IODA. More...
#include <ObsVector.h>
Public Member Functions | |
ObsVector (const ObsSpace &) | |
ObsVector (const ObsVector &, const bool copy=true) | |
~ObsVector () | |
ObsVector & | operator= (const ObsVector &) |
ObsVector & | operator*= (const double &) |
ObsVector & | operator+= (const ObsVector &) |
ObsVector & | operator-= (const ObsVector &) |
ObsVector & | operator*= (const ObsVector &) |
ObsVector & | operator/= (const ObsVector &) |
void | zero () |
void | axpy (const double &, const ObsVector &) |
void | invert () |
void | random () |
double | dot_product_with (const ObsVector &) const |
double | rms () const |
std::size_t | size () const |
unsigned int | nobs () const |
const double & | toFortran () const |
double & | toFortran () |
void | read (const std::string &) |
void | save (const std::string &) const |
Static Public Member Functions | |
static const std::string | classname () |
Private Member Functions | |
void | print (std::ostream &) const |
Private Attributes | |
const ObsSpace & | obsdb_ |
Associate ObsSpace object. More... | |
std::vector< double > | values_ |
Vector data. More... | |
ObsVector class to handle vectors in observation space for IODA.
This class holds observation vector data. Examples of an obs vector are the y vector and the H(x) vector. The methods of this class that implement vector operations (e.g., bitwise add, bitwise subtract, dot product) are capable of handling missing values in the obs data.
Definition at line 31 of file ioda/src/ioda/ObsVector.h.
|
explicit |
Definition at line 23 of file ObsVector.cc.
ioda::ObsVector::ObsVector | ( | const ObsVector & | other, |
const bool | copy = true |
||
) |
ioda::ObsVector::~ObsVector | ( | ) |
Definition at line 35 of file ObsVector.cc.
void ioda::ObsVector::axpy | ( | const double & | zz, |
const ObsVector & | rhs | ||
) |
Definition at line 110 of file ObsVector.cc.
|
inlinestatic |
Definition at line 34 of file ioda/src/ioda/ObsVector.h.
double ioda::ObsVector::dot_product_with | ( | const ObsVector & | other | ) | const |
void ioda::ObsVector::invert | ( | ) |
Definition at line 122 of file ObsVector.cc.
unsigned int ioda::ObsVector::nobs | ( | ) | const |
Definition at line 174 of file ObsVector.cc.
ObsVector & ioda::ObsVector::operator*= | ( | const double & | zz | ) |
Definition at line 43 of file ObsVector.cc.
Definition at line 78 of file ObsVector.cc.
Definition at line 52 of file ObsVector.cc.
Definition at line 65 of file ObsVector.cc.
Definition at line 91 of file ObsVector.cc.
Definition at line 38 of file ObsVector.cc.
|
private |
void ioda::ObsVector::random | ( | ) |
Definition at line 130 of file ObsVector.cc.
void ioda::ObsVector::read | ( | const std::string & | name | ) |
double ioda::ObsVector::rms | ( | ) | const |
void ioda::ObsVector::save | ( | const std::string & | name | ) | const |
|
inline |
Definition at line 54 of file ioda/src/ioda/ObsVector.h.
|
inline |
Definition at line 57 of file ioda/src/ioda/ObsVector.h.
|
inline |
Definition at line 58 of file ioda/src/ioda/ObsVector.h.
void ioda::ObsVector::zero | ( | ) |
Definition at line 104 of file ObsVector.cc.
|
private |
Associate ObsSpace object.
Definition at line 68 of file ioda/src/ioda/ObsVector.h.
|
private |
Vector data.
Definition at line 71 of file ioda/src/ioda/ObsVector.h.