Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Geom::SBasisOf< T > Class Template Reference

#include <sbasis-of.h>

Inheritance diagram for Geom::SBasisOf< T >:

Public Types

typedef T output_type
 

Public Member Functions

 SBasisOf ()
 
 SBasisOf (T a)
 
 SBasisOf (SBasisOf< T > const &a)
 
 SBasisOf (LinearOf< T > const &bo)
 
 SBasisOf (LinearOf< T > *bo)
 
bool isZero () const
 
bool isConstant () const
 
bool isFinite () const
 
at0 () const
 
at1 () const
 
valueAt (double t) const
 
operator() (double t) const
 
std::vector< T > valueAndDerivatives (double t, unsigned n) const
 The size of the returned vector equals n+1.
 
SBasisOf< T > toSBasis () const
 
double tailError (unsigned tail) const
 
SBasisOf< T > operator() (SBasisOf< T > const &g) const
 
LinearOf< T > operator[] (unsigned i) const
 
LinearOf< T > & operator[] (unsigned i)
 
void normalize ()
 
void truncate (unsigned k)
 

Private Member Functions

void derive ()
 

Private Attributes

unsigned dim
 

Detailed Description

template<typename T>
class Geom::SBasisOf< T >

Definition at line 59 of file sbasis-of.h.

Member Typedef Documentation

◆ output_type

template<typename T >
typedef T Geom::SBasisOf< T >::output_type

Definition at line 77 of file sbasis-of.h.

Constructor & Destructor Documentation

◆ SBasisOf() [1/5]

template<typename T >
Geom::SBasisOf< T >::SBasisOf ( )
inline

Definition at line 61 of file sbasis-of.h.

◆ SBasisOf() [2/5]

template<typename T >
Geom::SBasisOf< T >::SBasisOf ( a)
inlineexplicit

Definition at line 62 of file sbasis-of.h.

◆ SBasisOf() [3/5]

template<typename T >
Geom::SBasisOf< T >::SBasisOf ( SBasisOf< T > const &  a)
inline

Definition at line 65 of file sbasis-of.h.

◆ SBasisOf() [4/5]

template<typename T >
Geom::SBasisOf< T >::SBasisOf ( LinearOf< T > const &  bo)
inline

Definition at line 68 of file sbasis-of.h.

◆ SBasisOf() [5/5]

template<typename T >
Geom::SBasisOf< T >::SBasisOf ( LinearOf< T > *  bo)
inline

Definition at line 71 of file sbasis-of.h.

Member Function Documentation

◆ at0()

template<typename T >
T Geom::SBasisOf< T >::at0 ( ) const
inline

Definition at line 96 of file sbasis-of.h.

Referenced by convole().

◆ at1()

template<typename T >
T Geom::SBasisOf< T >::at1 ( ) const
inline

Definition at line 99 of file sbasis-of.h.

Referenced by convole().

◆ derive()

template<typename T >
void Geom::SBasisOf< T >::derive ( )
private

Definition at line 532 of file sbasis-of.h.

References size.

Referenced by Geom::SBasisOf< T >::valueAndDerivatives().

◆ isConstant()

template<typename T >
bool Geom::SBasisOf< T >::isConstant ( ) const
inline

Definition at line 85 of file sbasis-of.h.

References size.

◆ isFinite()

template<typename T >
bool Geom::SBasisOf< T >::isFinite ( ) const

◆ isZero()

◆ normalize()

template<typename T >
void Geom::SBasisOf< T >::normalize ( )
inline

Definition at line 151 of file sbasis-of.h.

References Geom::SBasisOf< T >::isZero().

Referenced by Geom::integral(), and Geom::multiply_add().

◆ operator()() [1/2]

template<typename T >
T Geom::SBasisOf< T >::operator() ( double  t) const
inline

Definition at line 114 of file sbasis-of.h.

References Geom::SBasisOf< T >::valueAt().

◆ operator()() [2/2]

template<typename T >
SBasisOf< T > Geom::SBasisOf< T >::operator() ( SBasisOf< T > const &  g) const
inline

Definition at line 607 of file sbasis-of.h.

References Geom::compose().

◆ operator[]() [1/2]

template<typename T >
LinearOf< T > & Geom::SBasisOf< T >::operator[] ( unsigned  i)
inline

Definition at line 148 of file sbasis-of.h.

◆ operator[]() [2/2]

template<typename T >
LinearOf< T > Geom::SBasisOf< T >::operator[] ( unsigned  i) const
inline

Definition at line 142 of file sbasis-of.h.

References size.

◆ tailError()

template<typename T >
double Geom::SBasisOf< T >::tailError ( unsigned  tail) const
inline

Definition at line 134 of file sbasis-of.h.

References Geom::bounds_fast(), and bs.

◆ toSBasis()

template<typename T >
SBasisOf< T > Geom::SBasisOf< T >::toSBasis ( ) const
inline

Definition at line 133 of file sbasis-of.h.

◆ truncate()

template<typename T >
void Geom::SBasisOf< T >::truncate ( unsigned  k)
inline

Definition at line 156 of file sbasis-of.h.

References resize(), and size.

Referenced by Geom::compose().

◆ valueAndDerivatives()

template<typename T >
std::vector< T > Geom::SBasisOf< T >::valueAndDerivatives ( double  t,
unsigned  n 
) const
inline

The size of the returned vector equals n+1.

Definition at line 121 of file sbasis-of.h.

References Geom::SBasisOf< T >::derive(), and Geom::SBasisOf< T >::valueAt().

◆ valueAt()

template<typename T >
T Geom::SBasisOf< T >::valueAt ( double  t) const
inline

Member Data Documentation

◆ dim

template<typename T >
unsigned Geom::SBasisOf< T >::dim
private

Definition at line 159 of file sbasis-of.h.


The documentation for this class was generated from the following files: