G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 More...
 
unsigned bytesUsed () const
 Provides memory usage information. More...
 
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. More...
 
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. More...
 
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 ( unsigned  flags = 0)
inlineexplicit

Main constructor.

Parameters
flagswhat to compute

Member Function Documentation

void addFlags ( unsigned  newFlags)
inlineinherited

addFlags set the evaluator to compute additional values

Parameters
newFlags
unsigned bytesUsed ( ) const
inlineinherited

Provides memory usage information.

Returns
the number of bytes occupied by this object

Member Data Documentation

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\).
std::vector<gsMatrix<T> > values
inherited

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