Class xlifepp::EigenElements#

class EigenElements#

Collaboration diagram for xlifepp::EigenElements:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "3" [label="std::vector< T >" tooltip="std::vector< T >"] "5" [label="std::vector< TermVector >" tooltip="std::vector< TermVector >"] "2" [label="std::vector< complex_t >" tooltip="std::vector< complex_t >"] "1" [label="xlifepp::EigenElements" tooltip="xlifepp::EigenElements" fillcolor="#BFBFBF"] "4" [label="xlifepp::TermVectors" tooltip="xlifepp::TermVectors"] "5" -> "3" [dir=forward tooltip="template-instance"] "2" -> "3" [dir=forward tooltip="template-instance"] "1" -> "2" [dir=forward tooltip="usage"] "1" -> "4" [dir=forward tooltip="usage"] "4" -> "5" [dir=forward tooltip="public-inheritance"] }

end user class containing eigenValues and eigenVectors computed by an eigen solver.

Public Functions

EigenElements(const TermMatrix *A_p, bool singleUnknown, bool isr, const std::vector<std::pair<complex_t, VectorEntry*>> &vvp, EigenSortKind esortk = _incr_module, string_t resname = "")#

main constructor

inline EigenElements(number_t n = 0, string_t resname = "")#

constructor from size

inline EigenElements &applyBoundaryConditions(const EssentialConditions &ecs, const ReductionMethod &rm = ReductionMethod())#
Parameters:

rm – apply essential conditions to eigen vectors

inline EigenElements &applyEssentialConditions(const EssentialConditions &ecs, const ReductionMethod &rm = ReductionMethod())#
Parameters:

rm – apply essential conditions to eigen vectors

inline EigenElements &applyEssentialConditions(const SetOfConstraints &sec, const ReductionMethod &rm = ReductionMethod())#
Parameters:

rm – apply constraints to eigen vectors

inline std::pair<complex_t, TermVector> element(number_t n) const#

access to nth eigen element (n>=1)

inline bool isReal() const#

move eigenvectors to real

inline number_t numberOfEigenValues() const#

< access to number of eigen values

void print(std::ostream&) const#

output on stream

Output on stream.

inline void resize(number_t n)#
Parameters:

n – resizes values and vectors

inline complex_t value(number_t n) const#

access to n-th eigen value (n>=1)

inline TermVector &vector(number_t n)#

access to n-th eigen vector (n>=1)

inline const TermVector &vector(number_t n) const#

access to n-th eigen vector (n>=1)

Public Members

std::vector<complex_t> values#

list of eigen values

TermVectors vectors#

list of eigen vectors, same size as values