ARTS 2.5.11 (git: 6827797f)
|
#include <covariance_matrix.h>
Public Types | |
enum class | MatrixType { dense , sparse } |
Public Member Functions | |
Block (Range row_range, Range column_range, IndexPair indices, std::shared_ptr< Matrix > dense) | |
Block (Range row_range, Range column_range, IndexPair indices, std::shared_ptr< Sparse > sparse) | |
Block (const Block &)=default | |
Block (Block &&)=default | |
Block & | operator= (const Block &)=default |
Block & | operator= (Block &&)=default |
~Block ()=default | |
Index | nrows () const |
Index | ncols () const |
Range | get_row_range () const |
Range | get_column_range () const |
Range & | get_row_range () |
Range & | get_column_range () |
void | set_matrix (std::shared_ptr< Sparse > sparse) |
void | set_matrix (std::shared_ptr< Matrix > dense) |
Vector | diagonal () const |
IndexPair | get_indices () const |
void | set_indices (Index f, Index s) |
MatrixType | get_matrix_type () const |
const Matrix & | get_dense () const |
Matrix & | get_dense () |
const Sparse & | get_sparse () const |
Sparse & | get_sparse () |
Private Attributes | |
Range | row_range_ |
Range | column_range_ |
IndexPair | indices_ |
MatrixType | matrix_type_ |
std::shared_ptr< Matrix > | dense_ |
std::shared_ptr< Sparse > | sparse_ |
Friends | |
void | mult (MatrixView, ConstMatrixView, const Block &) |
void | mult (MatrixView, const Block &, ConstMatrixView) |
void | mult (VectorView, const Block &, ConstVectorView) |
MatrixView | operator+= (MatrixView, const Block &) |
A block in a covariance matrix.
A block in a covariance matrix represents a correlation between two retrieval quantities. Each block holds a pointer to either a dense matrix of type Matrix or type Sparse. In addition to this it holds to two block indices i and j and two range objects that describe the position of the block in terms of the rows and columns of blocks in the matrix and the row and columns of elements, respectively.
Definition at line 46 of file covariance_matrix.h.
|
strong |
Enumerator | |
---|---|
dense | |
sparse |
Definition at line 52 of file covariance_matrix.h.
|
inline |
Definition at line 64 of file covariance_matrix.h.
|
inline |
Definition at line 87 of file covariance_matrix.h.
|
default |
|
default |
|
default |
|
inline |
Return the diagonal as a vector.
Definition at line 126 of file covariance_matrix.h.
|
inline |
The column range of this block
Definition at line 120 of file covariance_matrix.h.
References column_range_.
|
inline |
The column range of this block
Definition at line 115 of file covariance_matrix.h.
References column_range_.
Referenced by covmat_seAddInverseBlock().
|
inline |
Definition at line 148 of file covariance_matrix.h.
References ARTS_ASSERT, and dense_.
|
inline |
Definition at line 143 of file covariance_matrix.h.
References ARTS_ASSERT, and dense_.
|
inline |
Return the indices of the retrieval quantities correlated by this block as std::pair.
Definition at line 135 of file covariance_matrix.h.
References indices_.
|
inline |
Return the type of the matrix holding the correlation coefficients.
Definition at line 141 of file covariance_matrix.h.
References matrix_type_.
|
inline |
The row range of this block
Definition at line 118 of file covariance_matrix.h.
References row_range_.
|
inline |
The row range of this block
Definition at line 113 of file covariance_matrix.h.
References row_range_.
Referenced by covmat_seAddInverseBlock().
|
inline |
Definition at line 158 of file covariance_matrix.h.
References ARTS_ASSERT, and sparse_.
|
inline |
Definition at line 153 of file covariance_matrix.h.
References ARTS_ASSERT, and sparse_.
|
inline |
Number of columns of this block
Definition at line 110 of file covariance_matrix.h.
References column_range_.
|
inline |
Number of rows of this block
Definition at line 108 of file covariance_matrix.h.
References row_range_.
|
inline |
Return the indices of the retrieval quantities correlated by this block as std::pair.
Definition at line 138 of file covariance_matrix.h.
References indices_.
|
inline |
Definition at line 123 of file covariance_matrix.h.
References dense, dense_, matrix_type_, and sparse_.
|
inline |
Definition at line 122 of file covariance_matrix.h.
References dense_, matrix_type_, sparse, and sparse_.
|
friend |
Definition at line 52 of file covariance_matrix.cc.
|
friend |
Definition at line 22 of file covariance_matrix.cc.
|
friend |
Definition at line 82 of file covariance_matrix.cc.
|
friend |
Definition at line 104 of file covariance_matrix.cc.
|
private |
Definition at line 171 of file covariance_matrix.h.
Referenced by get_column_range(), and ncols().
|
private |
Definition at line 176 of file covariance_matrix.h.
Referenced by diagonal(), get_dense(), and set_matrix().
|
private |
Definition at line 172 of file covariance_matrix.h.
Referenced by get_indices(), and set_indices().
|
private |
Definition at line 174 of file covariance_matrix.h.
Referenced by get_matrix_type(), and set_matrix().
|
private |
Definition at line 171 of file covariance_matrix.h.
Referenced by get_row_range(), and nrows().
|
private |
Definition at line 177 of file covariance_matrix.h.
Referenced by diagonal(), get_sparse(), and set_matrix().