42 : m_basis(basis),m_errors(errors)
48 res.setZero(1,u.cols());
49 for(
index_t i=0; i<u.cols();++i)
54 typename gsBasis<T>::domainIter domIt = m_basis.makeDomainIterator();
55 for (; domIt->good(); domIt->next() )
64 if(low(d)> u(d,i) || u(d,i) > upp(d))
72 res(0,i) = m_errors.at(iter);
84 const std::vector<T>& m_errors;
#define short_t
Definition: gsConfig.h:35
#define index_t
Definition: gsConfig.h:32
A function from a n-dimensional domain to an m-dimensional image.
Definition: gsFunction.h:59
short_t domainDim() const
Dimension of the (source) domain.
Definition: gsAdaptiveMeshingUtils.h:80
virtual void eval_into(const gsMatrix< T > &u, gsMatrix< T > &res) const
Evaluate the function at points u into result.
Definition: gsAdaptiveMeshingUtils.h:45
const gsBasis< T > & basis(const index_t k) const
Helper which casts and returns the k-th piece of this function set as a gsBasis.
Definition: gsFunctionSet.hpp:33
This class provides a function that returns a constant error on each element.
Definition: gsAdaptiveMeshingUtils.h:32
A basis represents a family of scalar basis functions defined over a common parameter domain...
Definition: gsBasis.h:78
gsElementErrorPlotter(const gsBasis< T > &basis, const std::vector< T > &errors)
Constructs a function to plot the error of elements.
Definition: gsAdaptiveMeshingUtils.h:41