Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
sparse_matrix Class Reference
Collaboration diagram for sparse_matrix:

Public Types

typedef std::map< int, double > sparse_row

Public Member Functions

 sparse_matrix (int n, int m)
int nrows () const
int ncols () const
double operator() (int i, int j) const
double & operator() (int i, int j)
const sparse_row & operator[] (int i) const

Private Attributes

int _n
int _m
std::vector< sparse_row > _rows

Detailed Description

Definition at line 33 of file CustomAdapter.cc.

Member Typedef Documentation

◆ sparse_row

typedef std::map<int, double> sparse_matrix::sparse_row

Definition at line 37 of file CustomAdapter.cc.

Constructor & Destructor Documentation

◆ sparse_matrix()

sparse_matrix::sparse_matrix ( int n,
int m )
inline

Definition at line 39 of file CustomAdapter.cc.

Member Function Documentation

◆ ncols()

int sparse_matrix::ncols ( ) const
inline

Definition at line 46 of file CustomAdapter.cc.

◆ nrows()

int sparse_matrix::nrows ( ) const
inline

Definition at line 45 of file CustomAdapter.cc.

◆ operator()() [1/2]

double & sparse_matrix::operator() ( int i,
int j )
inline

Definition at line 56 of file CustomAdapter.cc.

◆ operator()() [2/2]

double sparse_matrix::operator() ( int i,
int j ) const
inline

Definition at line 49 of file CustomAdapter.cc.

◆ operator[]()

const sparse_row & sparse_matrix::operator[] ( int i) const
inline

Definition at line 59 of file CustomAdapter.cc.

Member Data Documentation

◆ _m

int sparse_matrix::_m
private

Definition at line 63 of file CustomAdapter.cc.

◆ _n

int sparse_matrix::_n
private

Definition at line 63 of file CustomAdapter.cc.

◆ _rows

std::vector<sparse_row> sparse_matrix::_rows
private

Definition at line 64 of file CustomAdapter.cc.


The documentation for this class was generated from the following file: