OOPS
|
Vector in observation space. More...
#include <ObsVec1D.h>
Public Member Functions | |
ObsVec1D (const ObsTable &, const std::string &name="") | |
ObsVec1D (const ObsVec1D &) | |
~ObsVec1D ()=default | |
ObsVec1D & | operator= (const ObsVec1D &) |
ObsVec1D & | operator*= (const double &) |
ObsVec1D & | operator+= (const ObsVec1D &) |
ObsVec1D & | operator-= (const ObsVec1D &) |
ObsVec1D & | operator*= (const ObsVec1D &) |
ObsVec1D & | operator/= (const ObsVec1D &) |
Eigen::VectorXd | packEigen (const ObsVec1D &) const |
size_t | packEigenSize (const ObsVec1D &) const |
size_t | size () const |
const double & | operator[] (const std::size_t ii) const |
double & | operator[] (const std::size_t ii) |
void | zero () |
void | ones () |
set all values to ones (for tests) More... | |
void | axpy (const double &, const ObsVec1D &) |
void | invert () |
void | random () |
double | dot_product_with (const ObsVec1D &) const |
double | rms () const |
void | mask (const ObsData1D< int > &) |
void | mask (const ObsVec1D &) |
ObsVec1D & | operator= (const ObsData1D< float > &) |
unsigned int | nobs () const |
const ObsTable & | obsdb () const |
void | save (const std::string &) const |
void | read (const std::string &) |
const double & | missing () const |
Static Public Member Functions | |
static const std::string | classname () |
Private Member Functions | |
void | print (std::ostream &) const |
Private Attributes | |
const ObsTable & | obsdb_ |
std::vector< double > | data_ |
const double | missing_ |
Vector in observation space.
ObsVec1D is implemented as an STL vector
Definition at line 32 of file ObsVec1D.h.
|
explicit |
lorenz95::ObsVec1D::ObsVec1D | ( | const ObsVec1D & | other | ) |
Definition at line 34 of file ObsVec1D.cc.
|
default |
void lorenz95::ObsVec1D::axpy | ( | const double & | zz, |
const ObsVec1D & | rhs | ||
) |
Definition at line 116 of file ObsVec1D.cc.
|
inlinestatic |
Definition at line 35 of file ObsVec1D.h.
double lorenz95::ObsVec1D::dot_product_with | ( | const ObsVec1D & | other | ) | const |
Definition at line 131 of file ObsVec1D.cc.
void lorenz95::ObsVec1D::invert | ( | ) |
Definition at line 110 of file ObsVec1D.cc.
void lorenz95::ObsVec1D::mask | ( | const ObsData1D< int > & | mask | ) |
void lorenz95::ObsVec1D::mask | ( | const ObsVec1D & | mask | ) |
|
inline |
unsigned int lorenz95::ObsVec1D::nobs | ( | ) | const |
Definition at line 155 of file ObsVec1D.cc.
|
inline |
Definition at line 69 of file ObsVec1D.h.
void lorenz95::ObsVec1D::ones | ( | ) |
set all values to ones (for tests)
Definition at line 106 of file ObsVec1D.cc.
ObsVec1D & lorenz95::ObsVec1D::operator*= | ( | const double & | zz | ) |
Definition at line 47 of file ObsVec1D.cc.
Definition at line 78 of file ObsVec1D.cc.
Definition at line 54 of file ObsVec1D.cc.
Definition at line 66 of file ObsVec1D.cc.
Definition at line 90 of file ObsVec1D.cc.
Definition at line 171 of file ObsVec1D.cc.
Definition at line 40 of file ObsVec1D.cc.
|
inline |
Definition at line 53 of file ObsVec1D.h.
|
inline |
Definition at line 52 of file ObsVec1D.h.
Eigen::VectorXd lorenz95::ObsVec1D::packEigen | ( | const ObsVec1D & | mask | ) | const |
size_t lorenz95::ObsVec1D::packEigenSize | ( | const ObsVec1D & | mask | ) | const |
Definition at line 198 of file ObsVec1D.cc.
|
private |
Definition at line 212 of file ObsVec1D.cc.
void lorenz95::ObsVec1D::random | ( | ) |
void lorenz95::ObsVec1D::read | ( | const std::string & | name | ) |
double lorenz95::ObsVec1D::rms | ( | ) | const |
Definition at line 142 of file ObsVec1D.cc.
void lorenz95::ObsVec1D::save | ( | const std::string & | name | ) | const |
|
inline |
Definition at line 51 of file ObsVec1D.h.
void lorenz95::ObsVec1D::zero | ( | ) |
Definition at line 102 of file ObsVec1D.cc.
|
private |
Definition at line 81 of file ObsVec1D.h.
|
private |
Definition at line 82 of file ObsVec1D.h.
|
private |
Definition at line 80 of file ObsVec1D.h.