OpenMEEG
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OpenMEEG::maths::BlockMatrix Class Reference

Block matrix class Block matrix class. More...

#include <block_matrix.h>

Inheritance diagram for OpenMEEG::maths::BlockMatrix:
Inheritance graph
[legend]
Collaboration diagram for OpenMEEG::maths::BlockMatrix:
Collaboration graph
[legend]

Public Member Functions

 BlockMatrix ()
 
 BlockMatrix (const size_t M, const size_t N)
 
size_t size () const override
 
void info () const override
 
Matrixblock (const unsigned i, const unsigned j)
 
const Matrixblock (const unsigned i, const unsigned j) const
 
const Blocks & blocks () const
 
void add_block (const Range &ir, const Range &jr)
 
void set_blocks (const Ranges &rows, const Ranges &cols)
 
double & operator() (const size_t i, const size_t j)
 
double operator() (const size_t i, const size_t j) const
 
- Public Member Functions inherited from OpenMEEG::LinOp
 LinOp ()
 
 LinOp (const Dimension m, const Dimension n, const StorageType st, const unsigned d)
 
virtual size_t size () const =0
 
virtual void info () const =0
 
- Public Member Functions inherited from OpenMEEG::LinOpInfo
 LinOpInfo ()
 
 LinOpInfo (const Dimension m, const Dimension n, const StorageType st, const unsigned d)
 
virtual ~LinOpInfo ()
 
Dimension nlin () const
 
Dimensionnlin ()
 
virtual Dimension ncol () const
 
Dimensionncol ()
 
StorageType storageType () const
 
StorageTypestorageType ()
 
unsigned dimension () const
 
unsigned & dimension ()
 
IOdefault_io ()
 

Additional Inherited Members

- Public Types inherited from OpenMEEG::LinOpInfo
enum  StorageType {
  FULL , SYMMETRIC , BLOCK , BLOCK_SYMMETRIC ,
  SPARSE
}
 
typedef maths::MathsIO * IO
 
- Protected Attributes inherited from OpenMEEG::LinOpInfo
Dimension num_lines
 
Dimension num_cols
 
StorageType storage
 
unsigned dim
 
IO DefaultIO = nullptr
 

Detailed Description

Block matrix class Block matrix class.

Definition at line 24 of file block_matrix.h.

Constructor & Destructor Documentation

◆ BlockMatrix() [1/2]

OpenMEEG::maths::BlockMatrix::BlockMatrix ( )
inline

Definition at line 31 of file block_matrix.h.

◆ BlockMatrix() [2/2]

OpenMEEG::maths::BlockMatrix::BlockMatrix ( const size_t  M,
const size_t  N 
)
inline

Definition at line 32 of file block_matrix.h.

Member Function Documentation

◆ size()

size_t OpenMEEG::maths::BlockMatrix::size ( ) const
inlineoverridevirtual

Implements OpenMEEG::LinOp.

Definition at line 34 of file block_matrix.h.

◆ info()

void OpenMEEG::maths::BlockMatrix::info ( ) const
inlineoverridevirtual

Implements OpenMEEG::LinOp.

Definition at line 41 of file block_matrix.h.

◆ block() [1/2]

Matrix & OpenMEEG::maths::BlockMatrix::block ( const unsigned  i,
const unsigned  j 
)
inline

Definition at line 53 of file block_matrix.h.

◆ block() [2/2]

const Matrix & OpenMEEG::maths::BlockMatrix::block ( const unsigned  i,
const unsigned  j 
) const
inline

Definition at line 54 of file block_matrix.h.

◆ blocks()

const Blocks & OpenMEEG::maths::BlockMatrix::blocks ( ) const
inline

Definition at line 56 of file block_matrix.h.

◆ add_block()

void OpenMEEG::maths::BlockMatrix::add_block ( const Range ir,
const Range jr 
)
inline

Definition at line 58 of file block_matrix.h.

◆ set_blocks()

void OpenMEEG::maths::BlockMatrix::set_blocks ( const Ranges rows,
const Ranges cols 
)
inline

Definition at line 65 of file block_matrix.h.

◆ operator()() [1/2]

double & OpenMEEG::maths::BlockMatrix::operator() ( const size_t  i,
const size_t  j 
)
inline

Definition at line 73 of file block_matrix.h.

◆ operator()() [2/2]

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

Definition at line 80 of file block_matrix.h.


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