quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
bspline Namespace Reference

Functions

template<typename FLT>
FLT ratio (const FLT num, const FLT denom)
template<typename INT, typename FLT, typename ITERATOR>
FLT onebasisfun (FLT const u, INT const p, ITERATOR const Ubegin, ITERATOR const Uend)
 function to compute the value of a BSpline basis function at a given point.
template<typename INT, typename FLT, typename ITERATOR>
FLT onebasisfunder (FLT u, INT p, ITERATOR Ubegin, ITERATOR Uend)
 function to compute the derivative of a BSpline basis function.
template<typename INT, typename ITERATOR, typename FLT = double>
std::vector< FLT > open_knot_vector (ITERATOR const bb, ITERATOR const be, INT const p, INT const r)
 create an uniform open knot vector given the list
template<typename INT, typename FLT, typename ITERATOR>
FLT onebasisfun2d (FLT const u, FLT const v, INT const pu, INT const pv, ITERATOR const Ubegin, ITERATOR const Uend, ITERATOR const Vbegin, ITERATOR const Vend)

Function Documentation

◆ onebasisfun()

template<typename INT, typename FLT, typename ITERATOR>
FLT bspline::onebasisfun ( FLT const u,
INT const p,
ITERATOR const Ubegin,
ITERATOR const Uend )

function to compute the value of a BSpline basis function at a given point.

Parameters
upoint where the derivative is to be evaluated.
pbasis function degree.
Ubeginiterator to the beginning of the local knot vector.
Uenditerator past the end of the local knot vector.

◆ onebasisfun2d()

template<typename INT, typename FLT, typename ITERATOR>
FLT bspline::onebasisfun2d ( FLT const u,
FLT const v,
INT const pu,
INT const pv,
ITERATOR const Ubegin,
ITERATOR const Uend,
ITERATOR const Vbegin,
ITERATOR const Vend )

◆ onebasisfunder()

template<typename INT, typename FLT, typename ITERATOR>
FLT bspline::onebasisfunder ( FLT u,
INT p,
ITERATOR Ubegin,
ITERATOR Uend )

function to compute the derivative of a BSpline basis function.

Todo
make shure that evaluation at the endopoints works correctly.
Parameters
upoint where the derivative is to be evaluated.
pbasis function degree.
Ubeginiterator to the beginning of the local knot vector.
Uenditerator past the end of the local knot vector.

◆ open_knot_vector()

template<typename INT, typename ITERATOR, typename FLT = double>
std::vector< FLT > bspline::open_knot_vector ( ITERATOR const bb,
ITERATOR const be,
INT const p,
INT const r )

create an uniform open knot vector given the list

of breaks, a (scalar) degree p and a (scalar) regularity r.

Parameters
bbbegin of list of breaks.
beend of list of breaks.
pbasis function degree.
rbasis functions regularity.
Returns
k knoct vector.

◆ ratio()

template<typename FLT>
FLT bspline::ratio ( const FLT num,
const FLT denom )