10 result.resize(m_p+1,u.cols());
18 result.resize(m_p+1,u.cols());
19 result.row(0).setOnes();
26 for (
int i=2; i<=m_p; ++i)
29 _getA(i) * u.array() * result.row(i-1).array() -
30 _getC(i) * result.row(i-2).array();
39 result.resize(m_p+1,u.cols());
40 result.row(0).setZero();
43 result.row(1).setOnes();
50 for (
int i=2; i<=m_p; ++i)
55 _getA(i) * ( val.row(i-1).array() + u.array() * result.row(i-1).array() ) -
56 _getC(i) * result.row(i-2).array();
void deriv2_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Definition gsLegendreBasis.hpp:62
void eval_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluates the non-zero basis functions at value u.
Definition gsLegendreBasis.hpp:15
void active_into(const gsMatrix< T > &u, gsMatrix< index_t > &result) const
Definition gsLegendreBasis.hpp:8
void deriv_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluates the (partial) derivatives of non-zero basis functions at (the columns of) u.
Definition gsLegendreBasis.hpp:36
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
#define GISMO_NO_IMPLEMENTATION
Definition gsDebug.h:129
The G+Smo namespace, containing all definitions for the library.