pyarts.covariancematrix.Block¶
-
class
pyarts.covariancematrix.
Block
(i, j, row_start, column_start, inverse, matrix)[source]¶ Block of a covariance matrix.
A block in a covariance matrix is identified by its row and column block indices. The block indices define to which retrieval quantities the covariance matrix block corresponds to.
-
row_start
¶ Row index of the left- and uppermost element of the block w.r.t to the full covariance matrix.
- Type
-
inverse
¶ Flag that indicates whether this block is part of the normal part of the covariance matrix or its inverse.
- Type
-
matrix
¶ The matrix that the block consists of.
- Type
numpy.ndarray of scipy.sparse
-
__init__
(i, j, row_start, column_start, inverse, matrix)[source]¶ - Parameters
i (int) – The row-block index of the covariance matrix block.
j (int) – The column-block index of the covariance matrix block.
row_start (int) – Row index of the left- and uppermost element in in the block.
column_start (int) – Column index of the left- and uppermost element in the block
inverse (bool) – Flag indicating whether the block is part of the inverse of the covariance matrix or not.
matrix (np.ndarray or sp.sparse) – The matrix of which the block consists.
Methods
__init__
(i, j, row_start, column_start, …)- param i
The row-block index of the covariance matrix block.
write_xml
(xmlwriter[, attr])Serialize block and write to xml stream.
Attributes
-