Class xlifepp::TensorKernel#

class TensorKernel : public xlifepp::Kernel#

Inheritence diagram for xlifepp::TensorKernel:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::Kernel" tooltip="xlifepp::Kernel"] "1" [label="xlifepp::TensorKernel" tooltip="xlifepp::TensorKernel" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::TensorKernel:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "33" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "27" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "50" [label="xlifepp::Vector< complex_t >" tooltip="xlifepp::Vector< complex_t >"] "30" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "52" [label="xlifepp::Vector< xlifepp::Vector< complex_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< complex_t > >"] "40" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "42" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"] "23" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"] "22" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"] "7" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "11" [label="std::map< string_t, std::pair< ValueType, StrucType > >" tooltip="std::map< string_t, std::pair< ValueType, StrucType > >"] "43" [label="std::list< T >" tooltip="std::list< T >"] "8" [label="std::map< K, T >" tooltip="std::map< K, T >"] "6" [label="std::vector< T >" tooltip="std::vector< T >"] "36" [label="std::vector< T >" tooltip="std::vector< T >"] "29" [label="std::vector< K >" tooltip="std::vector< K >"] "19" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"] "51" [label="std::vector< complex_t >" tooltip="std::vector< complex_t >"] "48" [label="std::vector< const xlifepp::GeomDomain * >" tooltip="std::vector< const xlifepp::GeomDomain * >"] "32" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "37" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "10" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "47" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"] "24" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "34" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "46" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"] "45" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"] "5" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "21" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "38" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"] "53" [label="std::vector< xlifepp::Vector< complex_t > >" tooltip="std::vector< xlifepp::Vector< complex_t > >"] "41" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "18" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"] "35" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "15" [label="xlifepp::DomainInfo" tooltip="xlifepp::DomainInfo"] "25" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"] "3" [label="xlifepp::Function" tooltip="xlifepp::Function"] "44" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"] "14" [label="xlifepp::GeomDomain" tooltip="xlifepp::GeomDomain"] "17" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "2" [label="xlifepp::Kernel" tooltip="xlifepp::Kernel"] "12" [label="xlifepp::KernelExpansion" tooltip="xlifepp::KernelExpansion"] "28" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "16" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"] "20" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"] "4" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "39" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"] "9" [label="xlifepp::Point" tooltip="xlifepp::Point"] "13" [label="xlifepp::SpectralBasis" tooltip="xlifepp::SpectralBasis"] "1" [label="xlifepp::TensorKernel" tooltip="xlifepp::TensorKernel" fillcolor="#BFBFBF"] "26" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "31" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "49" [label="xlifepp::VectorEntry" tooltip="xlifepp::VectorEntry"] "33" -> "34" [dir=forward tooltip="public-inheritance"] "33" -> "35" [dir=forward tooltip="template-instance"] "27" -> "10" [dir=forward tooltip="public-inheritance"] "27" -> "28" [dir=forward tooltip="template-instance"] "50" -> "51" [dir=forward tooltip="public-inheritance"] "50" -> "31" [dir=forward tooltip="template-instance"] "30" -> "10" [dir=forward tooltip="public-inheritance"] "30" -> "31" [dir=forward tooltip="template-instance"] "52" -> "53" [dir=forward tooltip="public-inheritance"] "52" -> "31" [dir=forward tooltip="template-instance"] "40" -> "41" [dir=forward tooltip="public-inheritance"] "40" -> "31" [dir=forward tooltip="template-instance"] "42" -> "43" [dir=forward tooltip="template-instance"] "23" -> "8" [dir=forward tooltip="template-instance"] "22" -> "8" [dir=forward tooltip="template-instance"] "7" -> "8" [dir=forward tooltip="template-instance"] "11" -> "8" [dir=forward tooltip="template-instance"] "29" -> "6" [dir=forward tooltip="template-instance"] "19" -> "6" [dir=forward tooltip="template-instance"] "51" -> "6" [dir=forward tooltip="template-instance"] "48" -> "6" [dir=forward tooltip="template-instance"] "32" -> "6" [dir=forward tooltip="template-instance"] "37" -> "6" [dir=forward tooltip="template-instance"] "10" -> "6" [dir=forward tooltip="template-instance"] "47" -> "6" [dir=forward tooltip="template-instance"] "24" -> "6" [dir=forward tooltip="template-instance"] "34" -> "6" [dir=forward tooltip="template-instance"] "46" -> "6" [dir=forward tooltip="template-instance"] "45" -> "6" [dir=forward tooltip="template-instance"] "5" -> "6" [dir=forward tooltip="template-instance"] "21" -> "6" [dir=forward tooltip="template-instance"] "38" -> "6" [dir=forward tooltip="template-instance"] "53" -> "6" [dir=forward tooltip="template-instance"] "41" -> "6" [dir=forward tooltip="template-instance"] "18" -> "19" [dir=forward tooltip="usage"] "35" -> "36" [dir=forward tooltip="public-inheritance"] "15" -> "16" [dir=forward tooltip="usage"] "25" -> "26" [dir=forward tooltip="usage"] "25" -> "33" [dir=forward tooltip="usage"] "25" -> "37" [dir=forward tooltip="usage"] "25" -> "10" [dir=forward tooltip="usage"] "25" -> "30" [dir=forward tooltip="usage"] "25" -> "38" [dir=forward tooltip="usage"] "25" -> "9" [dir=forward tooltip="usage"] "3" -> "4" [dir=forward tooltip="usage"] "3" -> "3" [dir=forward tooltip="usage"] "3" -> "9" [dir=forward tooltip="usage"] "3" -> "11" [dir=forward tooltip="usage"] "44" -> "44" [dir=forward tooltip="usage"] "44" -> "17" [dir=forward tooltip="usage"] "14" -> "15" [dir=forward tooltip="usage"] "14" -> "14" [dir=forward tooltip="usage"] "14" -> "17" [dir=forward tooltip="usage"] "14" -> "48" [dir=forward tooltip="usage"] "17" -> "18" [dir=forward tooltip="usage"] "17" -> "20" [dir=forward tooltip="usage"] "17" -> "22" [dir=forward tooltip="usage"] "17" -> "23" [dir=forward tooltip="usage"] "17" -> "24" [dir=forward tooltip="usage"] "17" -> "25" [dir=forward tooltip="usage"] "17" -> "39" [dir=forward tooltip="usage"] "17" -> "17" [dir=forward tooltip="usage"] "17" -> "44" [dir=forward tooltip="usage"] "2" -> "3" [dir=forward tooltip="usage"] "2" -> "2" [dir=forward tooltip="usage"] "2" -> "12" [dir=forward tooltip="usage"] "2" -> "4" [dir=forward tooltip="usage"] "2" -> "9" [dir=forward tooltip="usage"] "12" -> "3" [dir=forward tooltip="usage"] "28" -> "29" [dir=forward tooltip="public-inheritance"] "16" -> "17" [dir=forward tooltip="usage"] "16" -> "21" [dir=forward tooltip="usage"] "16" -> "45" [dir=forward tooltip="usage"] "16" -> "46" [dir=forward tooltip="usage"] "16" -> "37" [dir=forward tooltip="usage"] "16" -> "47" [dir=forward tooltip="usage"] "16" -> "16" [dir=forward tooltip="usage"] "20" -> "21" [dir=forward tooltip="usage"] "4" -> "5" [dir=forward tooltip="usage"] "4" -> "7" [dir=forward tooltip="usage"] "39" -> "17" [dir=forward tooltip="usage"] "39" -> "30" [dir=forward tooltip="usage"] "39" -> "40" [dir=forward tooltip="usage"] "39" -> "16" [dir=forward tooltip="usage"] "39" -> "4" [dir=forward tooltip="usage"] "39" -> "42" [dir=forward tooltip="usage"] "9" -> "10" [dir=forward tooltip="public-inheritance"] "13" -> "14" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "1" -> "13" [dir=forward tooltip="usage"] "1" -> "49" [dir=forward tooltip="usage"] "1" -> "3" [dir=forward tooltip="usage"] "26" -> "27" [dir=forward tooltip="usage"] "26" -> "30" [dir=forward tooltip="usage"] "26" -> "32" [dir=forward tooltip="usage"] "31" -> "29" [dir=forward tooltip="public-inheritance"] "49" -> "30" [dir=forward tooltip="usage"] "49" -> "50" [dir=forward tooltip="usage"] "49" -> "40" [dir=forward tooltip="usage"] "49" -> "52" [dir=forward tooltip="usage"] }

Public Functions

inline TensorKernel()#

default constructor

template<typename T>
TensorKernel(const SpectralBasis&, const Matrix<T>&, bool = false)#

constructor from spectral basis with one family and a matrix

template<typename T>
TensorKernel(const SpectralBasis&, const Matrix<T>&, const SpectralBasis&)#

constructor from spectral basis with two families and a matrix

template<typename T>
TensorKernel(const SpectralBasis&, const std::vector<T>&, bool = false)#

constructor from spectral basis with one family and a vector (matrix)

template<typename T>
TensorKernel(const SpectralBasis&, const std::vector<T>&, const SpectralBasis&)#

constructor from spectral basis with two families and a vector (matrix)

template<typename T>
TensorKernel(const std::vector<TermVector>&, const Matrix<T>&, bool = false)#

constructor with one family of TermVectors and a matrix

template<typename T>
TensorKernel(const std::vector<TermVector>&, const Matrix<T>&, const std::vector<TermVector>&)#

constructor with two families of TermVectors and a matrix

template<typename T>
TensorKernel(const std::vector<TermVector>&, const std::vector<T>&, bool = false)#

constructor with one family of TermVectors and a vector (matrix)

template<typename T>
TensorKernel(const std::vector<TermVector>&, const std::vector<T>&, const std::vector<TermVector>&)#

constructor with two families of TermVectors and a vector (matrix)

TensorKernel(const TensorKernel&)#

copy constructor with full copy of SpectralBasis and matrix

clone current kernel (virtual)

template<typename T>
TensorKernel(const Unknown&, const Matrix<T>&, bool = false)#

constructor from unknown with one family and a matrix

template<typename T>
TensorKernel(const Unknown&, const Matrix<T>&, const Unknown&)#

constructor from unknown with two families and a matrix

template<typename T>
TensorKernel(const Unknown&, const std::vector<T>&, bool = false)#

constructor from unknown with one family and a vector (matrix)

template<typename T>
TensorKernel(const Unknown&, const std::vector<T>&, const Unknown&)#

constructor from unknown with two families and a vector (matrix)

template<typename T>
TensorKernel(Function, const Matrix<T>&, bool = false)#

constructor with one family of functions and a matrix

template<typename T>
TensorKernel(Function, const Matrix<T>&, Function)#

constructor with two families of functions and a matrix

template<typename T>
TensorKernel(Function, const std::vector<T>&, bool = false)#

constructor with one family of functions and a vector (matrix)

constructor with one family of functions and a vector(matrix)

template<typename T>
TensorKernel(Function, const std::vector<T>&, Function)#

constructor with two families of functions and a vector (matrix)

constructor with two families of functions and a vector(matrix)

~TensorKernel()#

destructor

virtual TensorKernel *clone() const#

clone current tensor kernel

inline dimen_t dimOfPhi() const#

returns dimension of phi_p

inline dimen_t dimOfPsi() const#

returns dimension of psi_p

inline virtual dimPair dims() const#

returns (phi_p dim , psi_p dim)

inline virtual bool isSymbolic() const#

returns true is kernel is symbolic

template<typename T>
T kernelProduct(number_t, const T&) const#

return A_m*v (n=0,…)

template<typename T>
T kernelProduct(number_t, number_t, const T&) const#

return A_mn*v (n=0,…,m=0,…)

inline number_t nbOfPhi() const#

returns number of phi_p

inline number_t nbOfPsi() const#

returns number of psi_p

inline bool phiIsAnalytic() const#

returns true if phi_p is analytic

virtual void print(std::ostream&) const#

print utilities

inline bool psiIsAnalytic() const#

returns true if psi_p is analytic

inline bool sameBasis() const#

returns true if phi_p==psi_p

virtual StrucType strucType() const#

return kernel structure type (_scalar, _vector or _matrix)

inline virtual TensorKernel *tensorKernel()#

downcast to tensorkernel

inline virtual const TensorKernel *tensorKernel() const#

downcast methods

inline virtual KernelType type() const#

returns kernel type

virtual ValueType valueType() const#

return kernel value type (_real or _complex)

inline const VectorEntry &vectorEntry() const#

accessors

Public Members

bool freeBasis#

if true, delete SpectralBasis object

bool isConjugate#

conjugate phi_p in computation (default=false)

bool isDiag#

true if matrix is a diagonal matrix (assumed M=N)

Function xmap#

geometric transformation applied to point x

Function ymap#

geometric transformation applied to point y