Alsvinn  0.5.3
The fast FVM simulator with UQ support
Classes | Functions
alsutils::math Namespace Reference

Classes

struct  FastPower
 
struct  PowPower
 

Functions

template<int n>
__device__ __host__ real legendre (real x)
 
template<>
__device__ __host__ real legendre< 1 > (real x)
 
template<>
__device__ __host__ real legendre< 0 > (real x)
 
__device__ __host__ real legendre_p (int degree, real x)
 

Function Documentation

◆ legendre()

template<int n>
__device__ __host__ real alsutils::math::legendre ( real  x)

Should compute the legendre polynomial of degree n at x

Parameters
xthe point to evuluate in

See also http://www.boost.org/doc/libs/1_46_1/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html

Note
This function is only implemented to get a GPU version of the legendre polynomials (as of version 1.66, boost still doens't have a gpu friendly legendre implementation)

◆ legendre< 0 >()

Should compute the legendre polynomial of degree 0 at x

Parameters
xthe point to evuluate in

See also http://www.boost.org/doc/libs/1_46_1/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html

Note
This function is only implemented to get a GPU version of the legendre polynomials (as of version 1.66, boost still doens't have a gpu friendly legendre implementation)

◆ legendre< 1 >()

Should compute the legendre polynomial of degree 1 at x

Parameters
xthe point to evuluate in

See also http://www.boost.org/doc/libs/1_46_1/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html

Note
This function is only implemented to get a GPU version of the legendre polynomials (as of version 1.66, boost still doens't have a gpu friendly legendre implementation)

◆ legendre_p()

__device__ __host__ real alsutils::math::legendre_p ( int  degree,
real  x 
)

Should compute the legendre polynomial of degree degree at x

Parameters
degreethe degree of the polynomial
xthe point to evuluate in

See also http://www.boost.org/doc/libs/1_46_1/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html

Note
This function is only implemented to get a GPU version of the legendre polynomials (as of version 1.66, boost still doens't have a gpu friendly legendre implementation)