Go to the source code of this file.
Functions | |
template<long n> | |
std::ostream & | operator<< (std::ostream &s, const zhematrix_small< n > &A) |
template<long n> | |
void | idamax (long &I, long &J, const zhematrix_small< n > &A) |
template<long n> | |
comple | damax (const zhematrix_small< n > &A) |
template<long n> | |
zhematrix_small< n > & | operator+= (zhematrix_small< n > &A, const zhematrix_small< n > &B) |
template<long n> | |
zhematrix_small< n > & | operator-= (zhematrix_small< n > &A, const zhematrix_small< n > &B) |
template<long n> | |
zhematrix_small< n > & | operator*= (zhematrix_small< n > &A, const double &v) |
template<long n> | |
zhematrix_small< n > & | operator/= (zhematrix_small< n > &A, const double &v) |
template<long n> | |
const zhematrix_small< n > & | operator+ (const zhematrix_small< n > &A) |
template<long n> | |
zhematrix_small< n > | operator- (const zhematrix_small< n > &A) |
template<long n> | |
zgematrix_small< n, n > | operator+ (const zhematrix_small< n > &A, const zgematrix_small< n, n > &B) |
template<long n> | |
zhematrix_small< n > | operator+ (const zhematrix_small< n > &A, const zhematrix_small< n > &B) |
template<long n> | |
zgematrix_small< n, n > | operator- (const zhematrix_small< n > &A, const zgematrix_small< n, n > &B) |
template<long n> | |
zhematrix_small< n > | operator- (const zhematrix_small< n > &A, const zhematrix_small< n > &B) |
template<long n> | |
zcovector_small< n > | operator* (const zhematrix_small< n > &A, const zcovector_small< n > &B) |
template<long m, long n> | |
zgematrix_small< m, n > | operator* (const zhematrix_small< m > &A, const zgematrix_small< m, n > &B) |
template<long n> | |
zgematrix_small< n, n > | operator* (const zhematrix_small< n > &A, const zhematrix_small< n > &B) |
template<long n> | |
zhematrix_small< n > | operator* (const zhematrix_small< n > &A, const double &v) |
template<long n> | |
zhematrix_small< n > | operator/ (const zhematrix_small< n > &A, const double &v) |
std::ostream& operator<< | ( | std::ostream & | s, |
const zhematrix_small< n > & | A | ||
) | [inline] |
Definition at line 81 of file zhematrix_small-functions.hpp.
References i().
void idamax | ( | long & | I, |
long & | J, | ||
const zhematrix_small< n > & | A | ||
) | [inline] |
comple damax | ( | const zhematrix_small< n > & | A | ) | [inline] |
zhematrix_small<n>& operator+= | ( | zhematrix_small< n > & | A, |
const zhematrix_small< n > & | B | ||
) | [inline] |
Definition at line 227 of file zhematrix_small-functions.hpp.
References zhematrix_small< n >::array.
zhematrix_small<n>& operator-= | ( | zhematrix_small< n > & | A, |
const zhematrix_small< n > & | B | ||
) | [inline] |
Definition at line 238 of file zhematrix_small-functions.hpp.
References zhematrix_small< n >::array.
zhematrix_small<n>& operator*= | ( | zhematrix_small< n > & | A, |
const double & | v | ||
) | [inline] |
zhematrix_small<n>& operator/= | ( | zhematrix_small< n > & | A, |
const double & | v | ||
) | [inline] |
const zhematrix_small<n>& operator+ | ( | const zhematrix_small< n > & | A | ) | [inline] |
zhematrix_small<n> operator- | ( | const zhematrix_small< n > & | A | ) | [inline] |
zgematrix_small<n,n> operator+ | ( | const zhematrix_small< n > & | A, |
const zgematrix_small< n, n > & | B | ||
) | [inline] |
Definition at line 305 of file zhematrix_small-functions.hpp.
References i().
{VERBOSE_REPORT; zgematrix_small<n,n> X; for(long i=0; i<n; i++){ for(long j=0; j<i; j++){ X(i,j) =A(i,j)+B(i,j); } for(long j=i; j<n; j++){ X(i,j) =A(j,i)+B(i,j); } } return X; }
zhematrix_small<n> operator+ | ( | const zhematrix_small< n > & | A, |
const zhematrix_small< n > & | B | ||
) | [inline] |
zgematrix_small<n,n> operator- | ( | const zhematrix_small< n > & | A, |
const zgematrix_small< n, n > & | B | ||
) | [inline] |
Definition at line 337 of file zhematrix_small-functions.hpp.
References i().
{VERBOSE_REPORT; zgematrix_small<n,n> X; for(long i=0; i<n; i++){ for(long j=0; j<i; j++){ X(i,j) =A(i,j)-B(i,j); } for(long j=i; j<n; j++){ X(i,j) =A(j,i)-B(i,j); } } return X; }
zhematrix_small<n> operator- | ( | const zhematrix_small< n > & | A, |
const zhematrix_small< n > & | B | ||
) | [inline] |
zcovector_small<n> operator* | ( | const zhematrix_small< n > & | A, |
const zcovector_small< n > & | B | ||
) | [inline] |
Definition at line 368 of file zhematrix_small-functions.hpp.
References i().
{VERBOSE_REPORT; zcovector_small<n> C(0.); for(long i=0; i<n; i++){ for(long j=0; j<i; j++){ C(i) +=A(i,j)*B(j); } for(long j=i; j<n; j++){ C(i) +=A(j,i)*B(j); } } return C; }
zgematrix_small<m,n> operator* | ( | const zhematrix_small< m > & | A, |
const zgematrix_small< m, n > & | B | ||
) | [inline] |
Definition at line 385 of file zhematrix_small-functions.hpp.
References i().
{VERBOSE_REPORT; zgematrix_small<m,n> X(0.); for(long i=0; i<m; i++){ for(long j=0; j<n; j++){ for(long k=0; k<i; k++){ X(i,j) +=A(i,k)*B(k,j); } for(long k=i; k<m; k++){ X(i,j) +=A(k,i)*B(k,j); } } } return X; }
zgematrix_small<n,n> operator* | ( | const zhematrix_small< n > & | A, |
const zhematrix_small< n > & | B | ||
) | [inline] |
Definition at line 404 of file zhematrix_small-functions.hpp.
References i().
{VERBOSE_REPORT; zgematrix_small<n,n> X(0.); for(long i=0; i<n; i++){ for(long j=0; j<i; j++){ for(long k=0; k<j; k++){ X(i,j) +=A(i,k)*B(j,k); } for(long k=j; k<i; k++){ X(i,j) +=A(i,k)*B(k,j); } for(long k=i; k<n; k++){ X(i,j) +=A(k,i)*B(k,j); } } for(long j=i; j<n; j++){ for(long k=0; k<i; k++){ X(i,j) +=A(i,k)*B(j,k); } for(long k=i; k<j; k++){ X(i,j) +=A(k,i)*B(j,k); } for(long k=j; k<n; k++){ X(i,j) +=A(k,i)*B(k,j); } } } return X; }
zhematrix_small<n> operator* | ( | const zhematrix_small< n > & | A, |
const double & | v | ||
) | [inline] |
Definition at line 437 of file zhematrix_small-functions.hpp.
References i().
zhematrix_small<n> operator/ | ( | const zhematrix_small< n > & | A, |
const double & | v | ||
) | [inline] |
Definition at line 451 of file zhematrix_small-functions.hpp.
References i().