FV3 Bundle
lorenz95::ObsVec1D Class Reference

Vector in observation space. More...

#include <ObsVec1D.h>

Inheritance diagram for lorenz95::ObsVec1D:
[legend]
Collaboration diagram for lorenz95::ObsVec1D:
[legend]

Public Member Functions

 ObsVec1D (const ObsTable &)
 
 ObsVec1D (const ObsVec1D &, const bool copy=true)
 
 ~ObsVec1D ()
 
ObsVec1Doperator= (const ObsVec1D &)
 
ObsVec1Doperator*= (const double &)
 
ObsVec1Doperator+= (const ObsVec1D &)
 
ObsVec1Doperator-= (const ObsVec1D &)
 
ObsVec1Doperator*= (const ObsVec1D &)
 
ObsVec1Doperator/= (const ObsVec1D &)
 
void zero ()
 
void axpy (const double &, const ObsVec1D &)
 
void invert ()
 
void random ()
 
double dot_product_with (const ObsVec1D &) const
 
double rms () const
 
unsigned int size () const
 
double & operator() (const unsigned int ii)
 
const double & operator() (const unsigned int ii) const
 
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 ObsTableobsdb_
 
std::vector< double > data_
 

Detailed Description

Vector in observation space.

ObsVec1D is implemented as an STL vector

Definition at line 32 of file ObsVec1D.h.

Constructor & Destructor Documentation

◆ ObsVec1D() [1/2]

lorenz95::ObsVec1D::ObsVec1D ( const ObsTable ot)
explicit

Definition at line 28 of file src/lorenz95/ObsVec1D.cc.

◆ ObsVec1D() [2/2]

lorenz95::ObsVec1D::ObsVec1D ( const ObsVec1D other,
const bool  copy = true 
)

Definition at line 33 of file src/lorenz95/ObsVec1D.cc.

Here is the call graph for this function:

◆ ~ObsVec1D()

lorenz95::ObsVec1D::~ObsVec1D ( )
inline

Definition at line 39 of file ObsVec1D.h.

Member Function Documentation

◆ axpy()

void lorenz95::ObsVec1D::axpy ( const double &  zz,
const ObsVec1D rhs 
)

Definition at line 86 of file src/lorenz95/ObsVec1D.cc.

◆ classname()

static const std::string lorenz95::ObsVec1D::classname ( )
inlinestatic

Definition at line 35 of file ObsVec1D.h.

◆ dot_product_with()

double lorenz95::ObsVec1D::dot_product_with ( const ObsVec1D other) const

Definition at line 97 of file src/lorenz95/ObsVec1D.cc.

◆ invert()

void lorenz95::ObsVec1D::invert ( )

Definition at line 82 of file src/lorenz95/ObsVec1D.cc.

◆ operator()() [1/2]

double& lorenz95::ObsVec1D::operator() ( const unsigned int  ii)
inline

Definition at line 56 of file ObsVec1D.h.

◆ operator()() [2/2]

const double& lorenz95::ObsVec1D::operator() ( const unsigned int  ii) const
inline

Definition at line 57 of file ObsVec1D.h.

◆ operator*=() [1/2]

ObsVec1D & lorenz95::ObsVec1D::operator*= ( const double &  zz)

Definition at line 49 of file src/lorenz95/ObsVec1D.cc.

◆ operator*=() [2/2]

ObsVec1D & lorenz95::ObsVec1D::operator*= ( const ObsVec1D rhs)

Definition at line 66 of file src/lorenz95/ObsVec1D.cc.

◆ operator+=()

ObsVec1D & lorenz95::ObsVec1D::operator+= ( const ObsVec1D rhs)

Definition at line 54 of file src/lorenz95/ObsVec1D.cc.

◆ operator-=()

ObsVec1D & lorenz95::ObsVec1D::operator-= ( const ObsVec1D rhs)

Definition at line 60 of file src/lorenz95/ObsVec1D.cc.

◆ operator/=()

ObsVec1D & lorenz95::ObsVec1D::operator/= ( const ObsVec1D rhs)

Definition at line 72 of file src/lorenz95/ObsVec1D.cc.

◆ operator=()

ObsVec1D & lorenz95::ObsVec1D::operator= ( const ObsVec1D rhs)

Definition at line 43 of file src/lorenz95/ObsVec1D.cc.

◆ print()

void lorenz95::ObsVec1D::print ( std::ostream &  os) const
private

Definition at line 119 of file src/lorenz95/ObsVec1D.cc.

◆ random()

void lorenz95::ObsVec1D::random ( )

Definition at line 91 of file src/lorenz95/ObsVec1D.cc.

◆ read()

void lorenz95::ObsVec1D::read ( const std::string &  name)

Definition at line 111 of file src/lorenz95/ObsVec1D.cc.

Here is the call graph for this function:

◆ rms()

double lorenz95::ObsVec1D::rms ( ) const

Definition at line 104 of file src/lorenz95/ObsVec1D.cc.

◆ save()

void lorenz95::ObsVec1D::save ( const std::string &  name) const

Definition at line 115 of file src/lorenz95/ObsVec1D.cc.

Here is the call graph for this function:

◆ size()

unsigned int lorenz95::ObsVec1D::size ( ) const
inline

Definition at line 55 of file ObsVec1D.h.

◆ zero()

void lorenz95::ObsVec1D::zero ( )

Definition at line 78 of file src/lorenz95/ObsVec1D.cc.

Member Data Documentation

◆ data_

std::vector<double> lorenz95::ObsVec1D::data_
private

Definition at line 67 of file ObsVec1D.h.

◆ obsdb_

const ObsTable& lorenz95::ObsVec1D::obsdb_
private

Definition at line 66 of file ObsVec1D.h.


The documentation for this class was generated from the following files: