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

Detailed Description

template<typename T>
class gismo::gsMapData< T >

the gsMapData is a cache of pre-computed function (map) values.

Template Parameters
Tnumeric type
See also
gsFuncData

Inherits gsFuncData< T >.

+ Collaboration diagram for gsMapData< T >:

Public Member Functions

void addFlags (unsigned newFlags)
 addFlags set the evaluator to compute additional values
 
unsigned bytesUsed () const
 Provides memory usage information.
 
void clear ()
 Clear the memory that this object uses.
 
int deriv2Size () const
 Number of 2nd derivatives (dim.second*dim.first*(dim.first+1)/2).
 
int derivSize () const
 Number of partial derivatives (dim.second*dim.first).
 
int divSize () const
 Size of computed divergence (dim.second/dim.first).
 
 gsMapData (unsigned flags=0)
 Main constructor.
 
void swap (gsFuncData &other)
 Swaps this object with other.
 

Public Attributes

std::pair< short_t, short_tdim
 Dimension of the (source) domain and the target (image) space. dim.first refers to ParDim, dim.second refers to GeoDim.
 
gsMatrix< T > fundForms
 Second fundumental forms.
 
gsMatrix< T > jacInvTr
 Inverse of the Jacobian matrix (transposed)
 
gsMatrix< T > points
 input (parametric) points
 
std::vector< gsMatrix< T > > values
 

Constructor & Destructor Documentation

◆ gsMapData()

template<typename T >
gsMapData ( unsigned  flags = 0)
inlineexplicit

Main constructor.

Parameters
flagswhat to compute

Member Function Documentation

◆ addFlags()

template<typename T >
void addFlags ( unsigned  newFlags)
inlineinherited

addFlags set the evaluator to compute additional values

Parameters
newFlags

◆ bytesUsed()

template<typename T >
unsigned bytesUsed ( ) const
inlineinherited

Provides memory usage information.

Returns
the number of bytes occupied by this object

Member Data Documentation

◆ dim

template<typename T >
std::pair<short_t, short_t> dim
inherited

Dimension of the (source) domain and the target (image) space. dim.first refers to ParDim, dim.second refers to GeoDim.

Returns
For \(f:\mathbb{R}^n\rightarrow\mathbb{R}^m\) returns \(n\).

◆ values

template<typename T >
std::vector<gsMatrix<T> > values
inherited

Stores values and derivatives values[0] for base values[n] for n-th derivative