#include <mdp_matrix.h>
Public Member Functions | |
| void | allocate () |
| void | reallocate () |
| void | deallocate () |
| void | dimension (const uint, const uint) |
| mdp_matrix (const mdp_matrix &a) | |
| mdp_matrix (const uint r, const uint c) | |
| mdp_matrix (mdp_complex *z, const uint r, const uint c) | |
| const mdp_matrix & | operator= (const mdp_matrix &a) |
| mdp_complex & | operator[] (const uint i) |
| const mdp_complex & | operator[] (const uint i) const |
| mdp_complex & | operator() (const uint i, const uint j) |
| const mdp_complex & | operator() (const uint i, const uint j) const |
| mdp_matrix | operator() (const uint i) |
| mdp_complex * | address () |
| const uint | rows () const |
| const uint | cols () const |
| const uint | size () const |
| uint | rowmax () const |
| uint | colmax () const |
| mdp_matrix | operator+= (const mdp_matrix &a) |
| mdp_matrix | operator-= (const mdp_matrix &a) |
| mdp_matrix | operator *= (const mdp_matrix &a) |
| mdp_matrix | operator/= (const mdp_matrix &a) |
| mdp_matrix | operator+= (mdp_complex a) |
| mdp_matrix | operator-= (mdp_complex a) |
| mdp_matrix | operator *= (mdp_complex a) |
| mdp_matrix | operator/= (mdp_complex a) |
| mdp_matrix | operator+= (mdp_real a) |
| mdp_matrix | operator-= (mdp_real a) |
| mdp_matrix | operator *= (mdp_real a) |
| mdp_matrix | operator/= (mdp_real a) |
| void | operator= (mdp_complex a) |
| void | operator= (mdp_real a) |
Friends | |
| void | prepare (mdp_matrix &) |
| mdp_matrix | operator+ (const mdp_matrix &a) |
| mdp_matrix | operator- (const mdp_matrix &a) |
| mdp_matrix | operator+ (const mdp_matrix &a, const mdp_matrix &b) |
| mdp_matrix | operator- (const mdp_matrix &a, const mdp_matrix &b) |
| mdp_matrix | operator * (const mdp_matrix &a, const mdp_matrix &b) |
| mdp_matrix | operator/ (const mdp_matrix &a, const mdp_matrix &b) |
| mdp_matrix | operator+ (const mdp_matrix &a, mdp_complex b) |
| mdp_matrix | operator- (const mdp_matrix &a, mdp_complex b) |
| mdp_matrix | operator * (const mdp_matrix &a, mdp_complex b) |
| mdp_matrix | operator/ (const mdp_matrix &a, mdp_complex b) |
| mdp_matrix | operator+ (mdp_complex a, const mdp_matrix &b) |
| mdp_matrix | operator- (mdp_complex a, const mdp_matrix &b) |
| mdp_matrix | operator * (mdp_complex a, const mdp_matrix &b) |
| mdp_matrix | operator/ (mdp_complex a, const mdp_matrix &b) |
| mdp_matrix | operator+ (const mdp_matrix &a, mdp_real b) |
| mdp_matrix | operator- (const mdp_matrix &a, mdp_real b) |
| mdp_matrix | operator * (const mdp_matrix &a, mdp_real b) |
| mdp_matrix | operator/ (const mdp_matrix &a, mdp_real b) |
| mdp_matrix | operator+ (mdp_real a, const mdp_matrix &b) |
| mdp_matrix | operator- (mdp_real a, const mdp_matrix &b) |
| mdp_matrix | operator * (mdp_real a, const mdp_matrix &b) |
| mdp_matrix | operator/ (mdp_real a, const mdp_matrix &b) |
| mdp_matrix | inv (const mdp_matrix &a) |
| mdp_matrix | pow (const mdp_matrix &a, uint b) |
| mdp_matrix | exp (const mdp_matrix &a) |
| mdp_matrix | log (const mdp_matrix &a) |
| mdp_matrix | sin (const mdp_matrix &a) |
| mdp_matrix | cos (const mdp_matrix &a) |
| mdp_matrix | mdp_identity () |
| mdp_matrix | mdp_zero () |
| mdp_real | max (const mdp_matrix &a) |
| mdp_matrix | submatrix (const mdp_matrix &a, uint i, uint j) |
| mdp_complex | det (const mdp_matrix &a) |
| mdp_complex | trace (const mdp_matrix &a) |
| mdp_matrix | hermitian (const mdp_matrix &a) |
| mdp_matrix | transpose (const mdp_matrix &a) |
| mdp_matrix | conj (const mdp_matrix &a) |
Example:
mdp_matrix A,B;
A.resize(3,3);
A(0,0)=A(1,1)=A(2,2)=A(1,2)=1.0+I/2;
B=A+inv(A)+exp(A+5);
1.4.1