46 #include "Eigen/SparseCore" 115 explicit operator Matrix()
const;
141 Eigen::SparseMatrix<Numeric, Eigen::RowMajor>
matrix;
INDEX Index
The type to use for all integer numbers and indices.
friend void id_mat(Sparse &A)
Sparse identity matrix.
Index nnz() const
Returns the number of nonzero elements.
Numeric operator()(Index r, Index c) const
Plain index operator.
Vector diagonal() const
Diagonal elements as vector.
Index ncols() const
Returns the number of columns.
Numeric & rw(Index r, Index c)
Read and write index operator.
int * get_column_index_pointer()
bool empty() const
Returns true if variable size is zero.
Eigen::SparseMatrix< Numeric, Eigen::RowMajor > matrix
The actual matrix.
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
friend void transpose_mult(VectorView y, const Sparse &M, ConstVectorView x)
Sparse matrix - Vector multiplication.
This file contains the definition of Array.
Sparse()
Default constructor.
friend void transpose(Sparse &A, const Sparse &B)
Transpose of sparse matrix.
void split(Index offset, Index nrows)
Reduce matrix to the row range [offset, offset + nrows].
friend void abs(Sparse &A, const Sparse &B)
Absolute value of sparse matrix elements.
Index nrows() const
Returns the number of rows.
Sparse & operator/=(Numeric x)
Scale matrix by reciprocal.
friend void mult(VectorView y, const Sparse &M, ConstVectorView x)
Sparse matrix - Vector multiplication.
NUMERIC Numeric
The type to use for all floating point numbers.
Sparse & operator-=(const Sparse &x)
Subtract sparse matrix.
int * get_row_start_pointer()
friend void sub(Sparse &A, const Sparse &B, const Sparse &C)
Sparse - Sparse subtraction.
Implementation of Matrix, Vector, and such stuff.
Sparse & operator+=(const Sparse &x)
Add sparse matrix.
friend std::ostream & operator<<(std::ostream &os, const Sparse &v)
Output operator for Sparse.
Numeric ro(Index r, Index c) const
Read only index operator.
A constant view of a Vector.
void list_elements(Vector &values, ArrayOfIndex &row_indices, ArrayOfIndex &column_indices) const
List elements in matrix.
A constant view of a Matrix.
void resize(Index r, Index c)
Resize function.
friend void add(Sparse &A, const Sparse &B, const Sparse &C)
Sparse - Sparse addition.
void insert_row(Index r, Vector v)
Insert row function.
invlib::Matrix< ArtsMatrix > Matrix
invlib wrapper type for ARTS matrices.
Numeric * get_element_pointer()
void insert_elements(Index nnz, const ArrayOfIndex &rowind, const ArrayOfIndex &colind, ConstVectorView data)
Insert vector of elements with given row and column indices.
Sparse & operator*=(Numeric x)
Scale matrix.