G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsFiberMatrix< T, IsRowMajor > Class Template Reference

Detailed Description

template<class T, bool IsRowMajor = true>
class gismo::gsFiberMatrix< T, IsRowMajor >

A specialized sparse matrix class which stores each row as a separate sparse vector.

This allows efficient row resizing and insertion operations, particularly for knot insertion algorithms.

Public Member Functions

index_t cols () const
 
index_t innerSize () const
 
index_t outerSize () const
 
index_t rows () const
 

Private Member Functions

void resizeFibers (index_t newRows)
 Change the number of fibers without allocating newly added rows.
 

Member Function Documentation

◆ cols()

template<class T , bool IsRowMajor = true>
index_t cols ( ) const
inline
Returns
the number of columns of the matrix

◆ innerSize()

template<class T , bool IsRowMajor = true>
index_t innerSize ( ) const
inline
Returns
the size of the inner dimension according to the storage order, i.e., the number of rows for a columns major matrix, and the number of cols otherwise

◆ outerSize()

template<class T , bool IsRowMajor = true>
index_t outerSize ( ) const
inline
Returns
the size of the storage major dimension, i.e., the number of columns for a columns major matrix, and the number of rows otherwise

◆ rows()

template<class T , bool IsRowMajor = true>
index_t rows ( ) const
inline
Returns
the number of rows of the matrix