queso-0.53.0
|
Class to accommodate arrays of one-dimensional tables. More...
#include <ArrayOfOneDTables.h>
Public Member Functions | |
Constructor/Destructor methods | |
ArrayOfOneDTables (const char *prefix, const VectorSpace< V, M > &rowSpace) | |
Default constructor. More... | |
~ArrayOfOneDTables () | |
Destructor. More... | |
Math methods | |
void | setOneDTable (unsigned int rowId, const std::vector< double > &values) |
Sets the one-dimensional table. More... | |
const std::vector< double > & | oneDTable (unsigned int rowId) const |
Returns the array located at position rowId of the one-dimensional table. More... | |
I/O method | |
void | print (std::ostream &os) const |
Prints the values in this array of tables. More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSpace< V, M > & | m_rowSpace |
DistArray< std::vector< double > * > | m_oneDTables |
Class to accommodate arrays of one-dimensional tables.
Arrays of one-dimensional tables are necessary in the calculation (storage), for instance, of CDFs and MDF of vector functions (refer to BaseVectorCdf, BaseVectorMdf, and derived classes) given the (array of) grid points (ArrayOfOneDGrids).
Definition at line 49 of file ArrayOfOneDTables.h.
QUESO::ArrayOfOneDTables< V, M >::ArrayOfOneDTables | ( | const char * | prefix, |
const VectorSpace< V, M > & | rowSpace | ||
) |
Default constructor.
Definition at line 33 of file ArrayOfOneDTables.C.
References QUESO::ArrayOfOneDTables< V, M >::m_oneDTables, and QUESO::DistArray< T >::MyLength().
QUESO::ArrayOfOneDTables< V, M >::~ArrayOfOneDTables | ( | ) |
Destructor.
Definition at line 49 of file ArrayOfOneDTables.C.
const std::vector< double > & QUESO::ArrayOfOneDTables< V, M >::oneDTable | ( | unsigned int | rowId | ) | const |
Returns the array located at position rowId
of the one-dimensional table.
Definition at line 77 of file ArrayOfOneDTables.C.
References queso_require_less_msg, and queso_require_msg.
Referenced by QUESO::SampledVectorCdf< V, M >::SampledVectorCdf().
void QUESO::ArrayOfOneDTables< V, M >::print | ( | std::ostream & | os | ) | const |
Prints the values in this array of tables.
It prints the arrays (inner for-loop) in each position of the table (outer for-loop).
Definition at line 91 of file ArrayOfOneDTables.C.
References QUESO::ArrayOfOneDTables< V, M >::m_oneDTables.
Referenced by QUESO::operator<<().
void QUESO::ArrayOfOneDTables< V, M >::setOneDTable | ( | unsigned int | rowId, |
const std::vector< double > & | values | ||
) |
Sets the one-dimensional table.
This methods assigns the array values
to position rowId
of the one-dimensional table.
Definition at line 59 of file ArrayOfOneDTables.C.
References queso_require_less_msg.
Referenced by QUESO::SequenceOfVectors< V, M >::subUniformlySampledCdf(), and QUESO::SequenceOfVectors< V, M >::unifiedUniformlySampledCdf().
|
private |
Definition at line 78 of file ArrayOfOneDTables.h.
|
private |
Definition at line 81 of file ArrayOfOneDTables.h.
Referenced by QUESO::ArrayOfOneDTables< V, M >::ArrayOfOneDTables(), and QUESO::ArrayOfOneDTables< V, M >::print().
|
private |
Definition at line 79 of file ArrayOfOneDTables.h.
|
private |
Definition at line 80 of file ArrayOfOneDTables.h.