OpenMEEG
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
OpenMEEG::FastSparseMatrix Class Reference

#include <fast_sparse_matrix.h>

Public Member Functions

 FastSparseMatrix ()
 
 FastSparseMatrix (size_t n, size_t p, size_t sp)
 
 FastSparseMatrix (const SparseMatrix &M)
 
 FastSparseMatrix (const FastSparseMatrix &M)
 
 ~FastSparseMatrix ()
 
size_t nlin () const
 
size_t ncol () const
 
void write (std::ostream &f) const
 
void read (std::istream &f)
 
double operator() (size_t i, size_t j) const
 
double & operator() (size_t i, size_t j)
 
Vector operator* (const Vector &v) const
 
void operator= (const FastSparseMatrix &M)
 
double & operator[] (size_t i)
 
void info () const
 

Protected Member Functions

void alloc (size_t nl, size_t nc, size_t nz)
 
void destroy ()
 

Protected Attributes

double * tank
 
size_t * js
 
size_t * rowindex
 
size_t m_nlin
 
size_t m_ncol
 

Friends

std::ostream & operator<< (std::ostream &f, const FastSparseMatrix &M)
 

Detailed Description

Definition at line 16 of file fast_sparse_matrix.h.

Constructor & Destructor Documentation

◆ FastSparseMatrix() [1/4]

OpenMEEG::FastSparseMatrix::FastSparseMatrix ( )
inline

Definition at line 80 of file fast_sparse_matrix.h.

◆ FastSparseMatrix() [2/4]

OpenMEEG::FastSparseMatrix::FastSparseMatrix ( size_t  n,
size_t  p,
size_t  sp = 1 
)
inline

Definition at line 85 of file fast_sparse_matrix.h.

◆ FastSparseMatrix() [3/4]

OpenMEEG::FastSparseMatrix::FastSparseMatrix ( const SparseMatrix M)
inline

Definition at line 99 of file fast_sparse_matrix.h.

◆ FastSparseMatrix() [4/4]

OpenMEEG::FastSparseMatrix::FastSparseMatrix ( const FastSparseMatrix M)
inline

Definition at line 173 of file fast_sparse_matrix.h.

◆ ~FastSparseMatrix()

OpenMEEG::FastSparseMatrix::~FastSparseMatrix ( )
inline

Definition at line 38 of file fast_sparse_matrix.h.

Member Function Documentation

◆ alloc()

void OpenMEEG::FastSparseMatrix::alloc ( size_t  nl,
size_t  nc,
size_t  nz 
)
inlineprotected

Definition at line 156 of file fast_sparse_matrix.h.

◆ destroy()

void OpenMEEG::FastSparseMatrix::destroy ( )
inlineprotected

Definition at line 166 of file fast_sparse_matrix.h.

◆ nlin()

size_t OpenMEEG::FastSparseMatrix::nlin ( ) const
inline

Definition at line 181 of file fast_sparse_matrix.h.

◆ ncol()

size_t OpenMEEG::FastSparseMatrix::ncol ( ) const
inline

Definition at line 183 of file fast_sparse_matrix.h.

◆ write()

void OpenMEEG::FastSparseMatrix::write ( std::ostream &  f) const
inline

Definition at line 132 of file fast_sparse_matrix.h.

◆ read()

void OpenMEEG::FastSparseMatrix::read ( std::istream &  f)
inline

Definition at line 143 of file fast_sparse_matrix.h.

◆ operator()() [1/2]

double OpenMEEG::FastSparseMatrix::operator() ( size_t  i,
size_t  j 
) const
inline

Definition at line 185 of file fast_sparse_matrix.h.

◆ operator()() [2/2]

double & OpenMEEG::FastSparseMatrix::operator() ( size_t  i,
size_t  j 
)
inline

Definition at line 197 of file fast_sparse_matrix.h.

◆ operator*()

Vector OpenMEEG::FastSparseMatrix::operator* ( const Vector v) const
inline

Definition at line 209 of file fast_sparse_matrix.h.

◆ operator=()

void OpenMEEG::FastSparseMatrix::operator= ( const FastSparseMatrix M)
inline

Definition at line 90 of file fast_sparse_matrix.h.

◆ operator[]()

double & OpenMEEG::FastSparseMatrix::operator[] ( size_t  i)
inline

Definition at line 49 of file fast_sparse_matrix.h.

◆ info()

void OpenMEEG::FastSparseMatrix::info ( ) const
inline

Definition at line 70 of file fast_sparse_matrix.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  f,
const FastSparseMatrix M 
)
friend

Definition at line 55 of file fast_sparse_matrix.h.

Member Data Documentation

◆ tank

double* OpenMEEG::FastSparseMatrix::tank
protected

Definition at line 24 of file fast_sparse_matrix.h.

◆ js

size_t* OpenMEEG::FastSparseMatrix::js
protected

Definition at line 25 of file fast_sparse_matrix.h.

◆ rowindex

size_t* OpenMEEG::FastSparseMatrix::rowindex
protected

Definition at line 26 of file fast_sparse_matrix.h.

◆ m_nlin

size_t OpenMEEG::FastSparseMatrix::m_nlin
protected

Definition at line 27 of file fast_sparse_matrix.h.

◆ m_ncol

size_t OpenMEEG::FastSparseMatrix::m_ncol
protected

Definition at line 28 of file fast_sparse_matrix.h.


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