CVM Class Library
8.1
This C++ class library encapsulates concepts of vector and different matrices including square, band, symmetric and hermitian ones in Euclidean space of real and complex numbers.
|
Matrix of complex functions More...
#include <cfun.h>
Public Member Functions | |
cfmatrix () | |
Default constructor. | |
cfmatrix (size_t m, size_t n) | |
Constructor. | |
cfmatrix (size_t m, size_t n, const string_array &saInput) | |
Constructor. | |
cfmatrix (size_t m, size_t n, const string_array &saVars, const string_array &saBodies, const string_array &saParameters, const string_array &saMeanings) | |
Constructor. | |
cfmatrix (const BaseFMatrix &fm) | |
Copy Constructor. | |
cfmatrix (BaseFMatrix &&fm) | |
Move Constructor. | |
cmatrix | operator() () const |
Numerical value. | |
cmatrix | operator() (tcomplex d) const |
Numerical value. | |
cmatrix | operator() (tcomplex d1, tcomplex d2) const |
Numerical value. | |
cmatrix | operator() (tcomplex d1, tcomplex d2, tcomplex d3) const |
Numerical value. | |
cmatrix | operator() (const tcomplex *pd) const |
Numerical value. | |
Public Member Functions inherited from basic_fmatrix< tcomplex > | |
basic_fmatrix () | |
Default constructor. | |
basic_fmatrix (size_t m, size_t n) | |
Constructor. | |
basic_fmatrix (size_t m, size_t n, const string_array &saInput) | |
Constructor. | |
basic_fmatrix (size_t m, size_t n, const string_array &saVars, const string_array &saBodies, const string_array &saParameters, const string_array &saMeanings) | |
Constructor. | |
basic_fmatrix (const basic_fmatrix &fm) | |
Copy Constructor. | |
basic_fmatrix (basic_fmatrix &&fm) | |
Move Constructor. | |
size_t | msize () const |
Number of rows. | |
size_t | nsize () const |
Number of columns. | |
basic_fmatrix & | operator= (const basic_fmatrix &fm) throw (cvmexception) |
Assignment operator. | |
basic_fmatrix & | operator= (basic_fmatrix &&fm) throw (cvmexception) |
Assignment operator. | |
BaseFunction & | at (size_t nRow, size_t nCol) |
Reference to element (l-value) | |
const BaseFunction & | at (size_t nRow, size_t nCol) const |
Value of element (not l-value) | |
bool | operator== (const basic_fmatrix &fm) const |
Matrices of functions comparison. | |
bool | operator!= (const basic_fmatrix &fm) const |
Matrices of functions comparison. | |
basic_fmatrix & | operator<< (const basic_fmatrix &fm) |
Replacement operator. | |
basic_fmatrix | drv (size_t nVarNum) const |
Partial derivative. | |
basic_fmatrix & | simp () |
Simplifier. | |
basic_fmatrix | operator+ (const basic_fmatrix &fm) const throw (cvmexception) |
Addition operator. | |
basic_fmatrix | operator- (const basic_fmatrix &fm) const throw (cvmexception) |
Subtraction operator. | |
basic_fmatrix & | operator+= (const basic_fmatrix &fm) throw (cvmexception) |
Increment operator. | |
basic_fmatrix & | operator-= (const basic_fmatrix &fm) throw (cvmexception) |
Decrement operator. | |
basic_fmatrix | operator* (const BaseFunction &f) const |
Multiplication operator. | |
basic_fmatrix | operator* (const tcomplex &d) const |
Multiplication operator. | |
basic_fvector< tcomplex > | operator* (const basic_fvector< tcomplex > &fv) const throw (cvmexception) |
Matrix by vector product | |
basic_fmatrix | operator* (const basic_fmatrix &fm) const throw (cvmexception) |
Matrix by matrix product | |
basic_fmatrix | operator/ (const BaseFunction &f) const |
Division operator. | |
basic_fmatrix | operator/ (const tcomplex &d) const |
Division operator. | |
basic_fmatrix & | operator*= (const BaseFunction &f) |
Multiply and assign operator. | |
basic_fmatrix & | operator*= (const tcomplex &d) |
Multiply and assign operator. | |
basic_fmatrix & | operator/= (const BaseFunction &f) |
Divide and assign operator. | |
basic_fmatrix & | operator/= (const tcomplex &d) |
Divide and assign operator. | |
basic_fvector< tcomplex > | get_row (size_t nRow) const throw (cvmexception) |
Row as not l-value. | |
basic_fvector< tcomplex > | get_col (size_t nCol) const throw (cvmexception) |
Column as not l-value. | |
basic_fmatrix & | set_row (size_t nRow, const basic_fvector< tcomplex > &fv) throw (cvmexception) |
Row assignment. | |
basic_fmatrix & | set_col (size_t nCol, const basic_fvector< tcomplex > &fv) throw (cvmexception) |
Column assignment. | |
basic_fmatrix & | mult (const basic_fmatrix &fmA, const basic_fmatrix &fmB) throw (cvmexception) |
Matrix by matrix product | |
Public Member Functions inherited from FArray< tcomplex > | |
FArray () | |
Default constructor. | |
FArray (size_t nSize) | |
Constructor. | |
FArray (const FArray &a) | |
Copy constructor. | |
FArray (FArray &&a) | |
Move constructor. | |
FArray (const string_array &saInput) | |
Constructor. | |
FArray (const string_array &saVars, const string_array &saBodies, const string_array &saParameters, const string_array &saMeanings) | |
Constructor. | |
virtual | ~FArray () |
Destructor. | |
std::vector< BaseFunction > & | impl () |
Internal storage. | |
const std::vector< BaseFunction > & | impl () const |
Internal storage. | |
size_t | size () const |
Internal storage. | |
const BaseFunction & | operator[] (size_t n) const |
Constant reference to element (not l-value, zero-based) | |
BaseFunction & | operator[] (size_t n) |
Reference to element (l-value, zero-based) | |
void | value (tcomplex *pv) const |
Numerical value. | |
void | value (tcomplexd, tcomplex *pv) const |
Numerical value. | |
void | value (tcomplexd1, tcomplexd2, tcomplex *pv) const |
Numerical value. | |
void | value (tcomplexd1, tcomplexd2, tcomplexd3, tcomplex *pv) const |
Numerical value. | |
void | value (const tcomplex *pd, tcomplex *pv) const |
Numerical value. |
Protected Types | |
typedef basic_fmatrix< tcomplex > | BaseFMatrix |
Base class. | |
Protected Types inherited from basic_fmatrix< tcomplex > | |
typedef FArray< tcomplex > | BaseFArray |
Base class. | |
typedef BaseFArray::BaseFunction | BaseFunction |
Matrix element, i.e. rfunction or cfunction | |
Protected Types inherited from FArray< tcomplex > | |
typedef basic_function< tcomplex > | BaseFunction |
Vector element, i.e. rfunction or cfunction. |
Additional Inherited Members | |
Protected Attributes inherited from basic_fmatrix< tcomplex > | |
size_t | mM |
Number of rows | |
size_t | mN |
Number of columns |
Matrix of complex functions
Fortran style storage is used here, i.e. elements are stored by columns (the same way as in basic_rmatrix etc.).
|
protected |
|
inline |
|
inline |
Constructor.
Creates m
-by-n
matrix of zero functions.
[in] | m | Number of rows. |
[in] | n | Number of columns. |
|
inline |
Constructor.
Creates m
-by-n
matrix of functions. Each function element is ininialized using appropriate string as parameterless input in Wolfram's Mathemaca syntax {var1[,var2,...]} expr
. For expression syntax look at basic_function description. Matrix elements are initialized column by column. Constructor throws cvmexception in case of inappropriate sizes passed.
[in] | m | Number of rows. |
[in] | n | Number of columns. |
[in] | saInput | Array of strings with functions' expressions. |
|
inline |
Constructor.
Creates m
-by-n
matrix of parameterized functions. Each function element is ininialized using appropriate string as parameterless input in Wolfram's Mathemaca syntax {var1[,var2,...]} expr
. For expression syntax look at basic_function description. Matrix elements are initialized column by column. Constructor throws cvmexception in case of inappropriate sizes passed.
[in] | m | Number of rows. |
[in] | n | Number of columns. |
[in] | saVars | String array with variables (may be empty). |
[in] | saBodies | String array with functions' expressions. For expression syntax look at basic_function description. |
[in] | saParameters | String array with parameters (may be empty). |
[in] | saMeanings | String array with parameters' meanings (may be empty, must have the same size as saParameters). |
|
inline |
|
inline |
|
inline |
Numerical value.
Returns numerical value of matrix of functions of no variables.
Definition at line 12121 of file cfun.h.
Numerical value.
Returns numerical value of matrix of functions of one variable.
[in] | d | variable's value. |
Definition at line 12162 of file cfun.h.
Numerical value.
Returns numerical value of matrix of functions of two variables.
[in] | d1 | First variable's value. |
[in] | d2 | Second variable's value. |
Definition at line 12204 of file cfun.h.
Numerical value.
Returns numerical value of matrix of functions of three variables.
[in] | d1 | First variable's value. |
[in] | d2 | Second variable's value. |
[in] | d3 | Third variable's value. |
Definition at line 12247 of file cfun.h.
Numerical value.
Returns numerical value of matrix of functions for given values of variables. Array's dimension is not verified.
[in] | pd | array of variables' values. |
Definition at line 12293 of file cfun.h.