cheshirekow  v0.1.0
mpblocks::cuda::polynomial::SturmSequence< Scalar, max > Struct Template Reference

stores a squence of polynomials which satisfy the properties of sturms theorem and provides methods for computing the number of sign changes More...

#include <mpblocks/cuda/polynomial/SturmSequence.h>

Inheritance diagram for mpblocks::cuda::polynomial::SturmSequence< Scalar, max >:
mpblocks::cuda::polynomial::sturm_detail::Storage< Scalar, max > mpblocks::cuda::polynomial::Storage< Scalar, size-1 >

Public Member Functions

template<class Exp , class Spec >
__host__ __device__
__forceinline__ void 
rebuild (const RValue< Scalar, Exp, Spec > &rhs)
 
__host__ __device__
__forceinline__ int 
signChanges (Scalar s)
 return the number of sign changes at the specified point More...
 
__host__ __device__ __forceinline__ SturmSequence ()
 
template<class Exp , class Spec >
__host__ __device__ __forceinline__ SturmSequence (const RValue< Scalar, Exp, Spec > &rhs)
 builds a sturm sequence from a polynomial More...
 

Additional Inherited Members

- Public Attributes inherited from mpblocks::cuda::polynomial::sturm_detail::Storage< Scalar, max >
Polynomial< Scalar, typename
intlist::range< 0, size >
::result > 
poly
 

Detailed Description

template<typename Scalar, int max>
struct mpblocks::cuda::polynomial::SturmSequence< Scalar, max >

stores a squence of polynomials which satisfy the properties of sturms theorem and provides methods for computing the number of sign changes

Definition at line 41 of file SturmSequence.h.

Constructor & Destructor Documentation

template<typename Scalar, int max>
__host__ __device__ __forceinline__ mpblocks::cuda::polynomial::SturmSequence< Scalar, max >::SturmSequence ( )
inline

Definition at line 102 of file SturmSequence.h.

template<typename Scalar, int max>
template<class Exp , class Spec >
__host__ __device__ __forceinline__ mpblocks::cuda::polynomial::SturmSequence< Scalar, max >::SturmSequence ( const RValue< Scalar, Exp, Spec > &  rhs)
inline

builds a sturm sequence from a polynomial

Definition at line 108 of file SturmSequence.h.

Member Function Documentation

template<typename Scalar, int max>
template<class Exp , class Spec >
__host__ __device__ __forceinline__ void mpblocks::cuda::polynomial::SturmSequence< Scalar, max >::rebuild ( const RValue< Scalar, Exp, Spec > &  rhs)
inline

Definition at line 115 of file SturmSequence.h.

template<typename Scalar, int max>
__host__ __device__ __forceinline__ int mpblocks::cuda::polynomial::SturmSequence< Scalar, max >::signChanges ( Scalar  s)
inline

return the number of sign changes at the specified point

Definition at line 138 of file SturmSequence.h.


The documentation for this struct was generated from the following file: