My Project
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SparseMat Class Reference

#include <Mat.h>

Inheritance diagram for SparseMat:
Inheritance graph
[legend]
Collaboration diagram for SparseMat:
Collaboration graph
[legend]

Public Member Functions

 SparseMat (size_t nu)
 
 ~SparseMat ()
 
double & operator() (size_t i, size_t j)
 
double operator() (size_t i, size_t j) const
 
double dot (const std::vector< double > &x, size_t r) const
 
size_t memsize ()
 matrix size in bytes More...
 
- Public Member Functions inherited from Mat
 Mat (size_t nu)
 

Protected Attributes

double ** a
 coefficients, [nu][7] More...
 
int ** c
 columns in full matrix, [nu][7], -1 if not set More...
 

Static Protected Attributes

static constexpr size_t max_vals = 7
 max non-zeros per row More...
 

Additional Inherited Members

- Public Attributes inherited from Mat
const size_t nu
 number of rows (unknowns) More...
 

Constructor & Destructor Documentation

◆ SparseMat()

SparseMat::SparseMat ( size_t  nu)
inline

◆ ~SparseMat()

SparseMat::~SparseMat ( )
inline

Member Function Documentation

◆ dot()

double SparseMat::dot ( const std::vector< double > &  x,
size_t  r 
) const
inlinevirtual

Implements Mat.

◆ memsize()

size_t SparseMat::memsize ( )
inlinevirtual

matrix size in bytes

Implements Mat.

◆ operator()() [1/2]

double& SparseMat::operator() ( size_t  i,
size_t  j 
)
inlinevirtual

Implements Mat.

◆ operator()() [2/2]

double SparseMat::operator() ( size_t  i,
size_t  j 
) const
inlinevirtual

Implements Mat.

Member Data Documentation

◆ a

double** SparseMat::a
protected

coefficients, [nu][7]

◆ c

int** SparseMat::c
protected

columns in full matrix, [nu][7], -1 if not set

◆ max_vals

constexpr size_t SparseMat::max_vals = 7
staticprotected

max non-zeros per row


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