#include <ZMatrix.h>
Public Member Functions | |
int | dim1 () |
int | dim2 () |
int | size () |
complex< double > * | array () |
void | transpose () |
void | allocate (int i, int j) |
void | deallocate () |
void | operator= (const ZMatrix &rhs) |
void | operator= (const complex< double > C) |
void | operator= (const double C) |
void | operator *= (complex< double > C) |
void | operator/= (const complex< double > C) |
ZMatrix () | |
ZMatrix (int i, int j) | |
ZMatrix (const ZMatrix &rhs) | |
~ZMatrix () | |
complex< double > | SumAll () |
complex< double > | Trace () |
void | setrow (int irow, ZVector &vector) |
void | setcol (int icol, const ZVector &vector) |
void | row_scale (int irow, complex< double > C) |
complex< double > | rowdotu (int irow, const ZVector &vector) |
complex< double > | rowdotc (int irow, const ZVector &vector) |
complex< double > | coldotu (int icol, const ZVector &vector) |
complex< double > | coldotc (int icol, const ZVector &vector) |
void | col_scale (int icol, complex< double > C) |
complex< double > * | row_pointer (int irow) |
ZVector | row (int irow) |
complex< double > * | col_pointer (int icol) |
ZVector | col (int icol) |
complex< double > | SumRow (const int irow) |
complex< double > | SumCol (const int icol) |
ZMatrix | operator+ (const ZMatrix &rhs) |
ZMatrix | operator- (const ZMatrix &rhs) |
complex< double > & | operator() (int i, int j) |
Friends | |
ostream & | operator<< (ostream &strm, const ZMatrix &rhs) |
Definition at line 43 of file ZMatrix.h.
|
Creates an array. |
|
Creates an array and allocates memory.
Definition at line 239 of file ZMatrix.h. References allocate(). |
|
Creates an array and sets it equal to another array.
Definition at line 248 of file ZMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
Destroy's the array and cleans up the memory. Definition at line 264 of file ZMatrix.h. References deallocate(). |
|
Allocates memory for the array.
Definition at line 136 of file ZMatrix.h. References deallocate(). Referenced by operator=(), and ZMatrix(). |
|
Gets a pointer to a col the array elements. The ordering of this array is NOT specified. Definition at line 107 of file ZMatrix.h. Referenced by zgemm(), zgemm_c_c(), zgemm_c_n(), zgemm_c_t(), zgemm_n_c(), zgemm_n_t(), zgemm_t_c(), zgemm_t_n(), zgemm_t_t(), zgemv(), zgemv_c(), and zgemv_t(). |
|
Get a copy 1D array of the i-th coloumn |
|
Return a pointer to the coloumn icol |
|
Rescale a column |
|
Dot product between the i-th col and a vector |
|
Dot product between the i-th col and a vector |
|
Deallocates memory for the array. Definition at line 156 of file ZMatrix.h. Referenced by allocate(), and ~ZMatrix(). |
|
Gets the number of elements in the array's first dimension.
Definition at line 87 of file ZMatrix.h. Referenced by zgemm(), zgemm_c_c(), zgemm_c_n(), zgemm_c_t(), zgemm_n_c(), zgemm_n_t(), zgemm_t_c(), zgemm_t_n(), zgemm_t_t(), zgemv(), zgemv_c(), and zgemv_t(). |
|
Gets the number of elements in the array's second dimension.
Definition at line 94 of file ZMatrix.h. Referenced by zgemm(), zgemm_c_c(), zgemm_c_n(), zgemm_c_t(), zgemm_n_c(), zgemm_n_t(), zgemm_t_c(), zgemm_t_n(), zgemm_t_t(), zgemv(), zgemv_c(), and zgemv_t(). |
|
Scale all elements for C Definition at line 207 of file ZMatrix.h. References F77_FUNC. |
|
Accesses element |
|
Returns the sum of two matrices. |
|
Returns the difference of two Matrices. |
|
Sets this array equal to itself divided by a scalar value. |
|
Sets all of the elements in an array equal to the real value. Definition at line 197 of file ZMatrix.h. References dcmplx(). |
|
Sets all of the elements in an array equal to the complex value. |
|
Sets two matrix equal. Definition at line 173 of file ZMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
Get a copy 1D array of the i-th row Definition at line 491 of file ZMatrix.h. Referenced by main(). |
|
complex<double> coldot(int icol, complex<double> *vector) { return F77_FUNC(ddot,DDOT)(&n_1,pArray+icol*n_1,&one,vector,&one); } /** Return a pointer to the row irow |
|
void setcol(int icol,complex<double> *vector) { ifdef DEBUG if(icol>=n_2) { cerr << " ERROR! dimension array copying coloumn! " << endl; exit(1); } endif F77_FUNC(dcopy,DCOPY)(&n_1,vector,&one,pArray+icol*n_1,&one); } /** Rescale a row Definition at line 360 of file ZMatrix.h. Referenced by main(). |
|
Dot product between the i-th row and a vector |
|
Dot product between the i-th row and a vector Definition at line 378 of file ZMatrix.h. Referenced by main(). |
|
void setrow(int irow,complex<double> *vector,int lda) { F77_FUNC(dcopy,DCOPY)(&n_2,vector,&lda,pArray+irow,&n_1); } /** Copy an 1D array into the i-th coloumn Definition at line 329 of file ZMatrix.h. Referenced by main(). |
|
Copy an 1D array into the i-th row Definition at line 296 of file ZMatrix.h. References F77_FUNC, ZVector::n_1, and ZVector::pArray. Referenced by main(). |
|
Gets the total number of elements in the array.
|
|
Sum all elements of the matrix Definition at line 269 of file ZMatrix.h. Referenced by main(). |
|
Sum all elements of a Col the matrix |
|
Sum all elements of a Row the matrix Definition at line 545 of file ZMatrix.h. Referenced by main(). |
|
Return the ZMatrix Trace Definition at line 279 of file ZMatrix.h. Referenced by main(). |
|
Transpose the 2D matrix |
|
Prints the array to a stream. |