#include <DMatrix.h>
Public Member Functions | |
int | dim1 () |
int | dim2 () |
int | size () |
double * | array () |
void | transpose () |
void | allocate (int i, int j) |
void | deallocate () |
void | operator= (const DMatrix &rhs) |
void | operator= (const double C) |
void | operator *= (double C) |
void | operator/= (const double C) |
DMatrix () | |
DMatrix (int i, int j) | |
DMatrix (const DMatrix &rhs) | |
~DMatrix () | |
double | SumAll () |
double | Trace () |
void | setrow (int irow, DVector &vector) |
void | setrow (int irow, double *vector) |
void | setrow (int irow, double *vector, int lda) |
void | setcol (int icol, const DVector &vector) |
void | setcol (int icol, double *vector) |
void | row_scale (int irow, double C) |
double | rowdot (int irow, const DVector &vector) |
double | coldot (int icol, const DVector &vector) |
void | col_scale (int icol, double C) |
double | rowdot (int irow, double *vector) |
double | coldot (int icol, double *vector) |
double * | row_pointer (int irow) |
DVector | row (int irow) |
double * | col_pointer (int icol) |
DVector | col (int icol) |
double | SumRow (const int irow) |
double | SumCol (const int icol) |
DMatrix | operator+ (const DMatrix &rhs) |
DMatrix | operator- (const DMatrix &rhs) |
double & | operator() (int i, int j) |
Friends | |
ostream & | operator<< (ostream &strm, const DMatrix &rhs) |
Definition at line 43 of file DMatrix.h.
|
Creates an array. |
|
Creates an array and allocates memory.
Definition at line 230 of file DMatrix.h. References allocate(). |
|
Creates an array and sets it equal to another array.
Definition at line 239 of file DMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
Destroy's the array and cleans up the memory. Definition at line 255 of file DMatrix.h. References deallocate(). |
|
Allocates memory for the array.
Definition at line 136 of file DMatrix.h. References deallocate(). Referenced by DMatrix(), main(), and operator=(). |
|
Gets a pointer to a col the array elements. The ordering of this array is NOT specified. Definition at line 107 of file DMatrix.h. Referenced by dgemm(), dgemm_n_t(), dgemm_t_n(), dgemm_t_t(), dgemv(), dgemv_t(), DLU_decomp(), DLU_invert(), DLU_solve(), and DSYEV(). |
|
Get a copy 1D array of the i-th coloumn Definition at line 482 of file DMatrix.h. References F77_FUNC, and DVector::pArray. |
|
Return a pointer to the coloumn icol |
|
Rescale a column Definition at line 396 of file DMatrix.h. References F77_FUNC. |
|
Dot product between the i-th col and a vector Definition at line 420 of file DMatrix.h. References F77_FUNC. |
|
Dot product between the i-th col and a vector Definition at line 381 of file DMatrix.h. References F77_FUNC, DVector::n_1, and DVector::pArray. |
|
Deallocates memory for the array. Definition at line 157 of file DMatrix.h. Referenced by allocate(), and ~DMatrix(). |
|
Gets the number of elements in the array's first dimension.
Definition at line 87 of file DMatrix.h. Referenced by dgemm(), dgemm_n_t(), dgemm_t_n(), dgemm_t_t(), dgemv(), dgemv_t(), DLU_decomp(), DLU_det(), DLU_invert(), DLU_solve(), and DSYEV(). |
|
Gets the number of elements in the array's second dimension.
Definition at line 94 of file DMatrix.h. Referenced by dgemm(), dgemm_n_t(), dgemm_t_n(), dgemm_t_t(), dgemv(), dgemv_t(), DLU_invert(), and DSYEV(). |
|
Sets this array equal to itself times a scalar value. Definition at line 198 of file DMatrix.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. Definition at line 208 of file DMatrix.h. References F77_FUNC. |
|
Sets all of the elements in an array equal to the same value. |
|
Sets two arrays equal. Definition at line 174 of file DMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
Get a copy 1D array of the i-th row Definition at line 445 of file DMatrix.h. References F77_FUNC, and DVector::pArray. |
|
Return a pointer to the row irow |
|
Rescale a row Definition at line 348 of file DMatrix.h. References F77_FUNC. |
|
Dot product between the i-th row and a vector Definition at line 412 of file DMatrix.h. References F77_FUNC. |
|
Dot product between the i-th row and a vector Definition at line 366 of file DMatrix.h. References F77_FUNC, DVector::n_1, and DVector::pArray. |
|
Copy an 1D array into the i-th coloumn Definition at line 333 of file DMatrix.h. References F77_FUNC. |
|
Copy an 1D array into the i-th coloumn Definition at line 318 of file DMatrix.h. References F77_FUNC, DVector::n_1, and DVector::pArray. |
|
Copy an 1D C double array into the i-th row with lda Definition at line 310 of file DMatrix.h. References F77_FUNC. |
|
Copy an 1D double array into the i-th row Definition at line 302 of file DMatrix.h. References F77_FUNC. |
|
Copy an 1D array into the i-th row Definition at line 287 of file DMatrix.h. References F77_FUNC, DVector::n_1, and DVector::pArray. |
|
Gets the total number of elements in the array.
|
|
Sum all elements of the matrix |
|
Sum all elements of a Col the matrix |
|
Sum all elements of a Row the matrix |
|
Return the DMatrix Trace |
|
Transpose the 2D matrix Definition at line 113 of file DMatrix.h. Referenced by main(). |
|
Prints the array to a stream. |