37 typedef memory::shared_ptr< gsAffineFunction >
Ptr;
40 typedef memory::unique_ptr< gsAffineFunction >
uPtr;
46 : m_mat(other.m_mat), m_trans(other.m_trans)
89 const gsMatrix<T> & matrix()
const {
return m_mat; }
90 const gsVector<T> & translation()
const {
return m_trans; }
94 virtual void eval_into(
const gsMatrix<T>& u, gsMatrix<T>& result)
const;
97 gsMatrix<T>& result)
const;
98 virtual void deriv_into(
const gsMatrix<T>& u, gsMatrix<T>& result)
const;
99 virtual void deriv2_into(
const gsMatrix<T>& u, gsMatrix<T>& result )
const;
105 #ifndef GISMO_BUILD_LIB
106 #include GISMO_HPP_HEADER(gsAffineFunction.hpp)
#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
virtual short_t targetDim() const
Dimension of the target space.
Definition: gsAffineFunction.hpp:58
static uPtr make(const gsVector< index_t > &directions, const gsVector< bool > &orientation, const gsMatrix< T > &box1, const gsMatrix< T > &box2)
Construct the affine map that maps box1 to box2 by mapping coordinate i of box1 to coordinate directi...
Definition: gsAffineFunction.h:86
Representation of an affine function.
Definition: gsAffineFunction.h:29
virtual void deriv_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluate derivatives of the function at points u into result.
Definition: gsAffineFunction.hpp:82
virtual void deriv2_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluate second derivatives of the function at points u into result.
Definition: gsAffineFunction.hpp:100
memory::shared_ptr< gsAffineFunction > Ptr
Shared pointer for gsAffineFunction.
Definition: gsAffineFunction.h:37
virtual void eval_component_into(const gsMatrix< T > &u, const index_t comp, gsMatrix< T > &result) const
Evaluate the function for component comp in the target dimension at points u into result...
Definition: gsAffineFunction.hpp:72
static uPtr make(const gsMatrix< T > mat, const gsVector< T > trans)
Affine maps are the composition of a linear map with a translation this constructor takes the two com...
Definition: gsAffineFunction.h:75
gsAffineFunction(const gsAffineFunction &other)
copy constructor
Definition: gsAffineFunction.h:45
virtual short_t domainDim() const
Dimension of the (source) domain.
Definition: gsAffineFunction.hpp:52
This is the main header file that collects wrappers of Eigen for linear algebra.
Provides declaration of Function abstract interface.
virtual void eval_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluate the function at points u into result.
Definition: gsAffineFunction.hpp:64
memory::unique_ptr< gsAffineFunction > uPtr
Unique pointer for gsAffineFunction.
Definition: gsAffineFunction.h:40