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.

i

Row-block index of the block

Type

int

j

Column-block index of the block

Type

int

row_start

Row index of the left- and uppermost element of the block w.r.t to the full covariance matrix.

Type

int

column_start

the block w.r.t. to the full covariance matrix.

Type

int

inverse

Flag that indicates whether this block is part of the normal part of the covariance matrix or its inverse.

Type

bool

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

column_start

i

inverse

j

matrix

row_start