#include <SMatrix.h>
Public Member Functions | |
| int | dim1 () |
| int | dim2 () |
| int | size () |
| float * | array () |
| void | transpose () |
| void | allocate (int i, int j) |
| void | deallocate () |
| void | operator= (const SMatrix &rhs) |
| void | operator= (const float C) |
| void | operator *= (float C) |
| void | operator/= (const float C) |
| SMatrix () | |
| SMatrix (int i, int j) | |
| SMatrix (const SMatrix &rhs) | |
| ~SMatrix () | |
| float | SumAll () |
| float | Trace () |
| void | setrow (int irow, SVector &vector) |
| void | setrow (int irow, float *vector) |
| void | setrow (int irow, float *vector, int lda) |
| void | setcol (int icol, const SVector &vector) |
| void | setcol (int icol, float *vector) |
| void | row_scale (int irow, float C) |
| float | rowdot (int irow, const SVector &vector) |
| float | coldot (int icol, const SVector &vector) |
| void | col_scale (int icol, float C) |
| float | rowdot (int irow, float *vector) |
| float | coldot (int icol, float *vector) |
| float * | row_pointer (int irow) |
| SVector | row (int irow) |
| float * | col_pointer (int icol) |
| SVector | col (int icol) |
| float | SumRow (const int irow) |
| float | SumCol (const int icol) |
| SMatrix | operator+ (const SMatrix &rhs) |
| SMatrix | operator- (const SMatrix &rhs) |
| float & | operator() (int i, int j) |
Friends | |
| class | TMatrix |
| ostream & | operator<< (ostream &strm, const SMatrix &rhs) |
Definition at line 43 of file SMatrix.h.
|
|
Creates an array. |
|
||||||||||||
|
Creates an array and allocates memory.
Definition at line 232 of file SMatrix.h. References allocate(). |
|
|
Creates an array and sets it equal to another array.
Definition at line 241 of file SMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
|
Destroy's the array and cleans up the memory. Definition at line 257 of file SMatrix.h. References deallocate(). |
|
||||||||||||
|
Allocates memory for the array.
Definition at line 138 of file SMatrix.h. References deallocate(). Referenced by main(), operator=(), and SMatrix(). |
|
|
Gets a pointer to a col the array elements. The ordering of this array is NOT specified. Definition at line 109 of file SMatrix.h. Referenced by sgemm(), sgemm_n_t(), sgemm_t_n(), sgemm_t_t(), sgemv(), sgemv_t(), SLU_decomp(), SLU_invert(), SLU_solve(), and SSYEV(). |
|
|
Get a copy 1D array of the i-th coloumn Definition at line 484 of file SMatrix.h. References F77_FUNC, and SVector::pArray. |
|
|
Return a pointer to the coloumn icol |
|
||||||||||||
|
Rescale a column Definition at line 398 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Dot product between the i-th col and a vector Definition at line 422 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Dot product between the i-th col and a vector Definition at line 383 of file SMatrix.h. References F77_FUNC, SVector::n_1, and SVector::pArray. |
|
|
Deallocates memory for the array. Definition at line 159 of file SMatrix.h. Referenced by allocate(), and ~SMatrix(). |
|
|
Gets the number of elements in the array's first dimension.
Definition at line 89 of file SMatrix.h. Referenced by sgemm(), sgemm_n_t(), sgemm_t_n(), sgemm_t_t(), sgemv(), sgemv_t(), SLU_decomp(), SLU_det(), SLU_invert(), SLU_solve(), and SSYEV(). |
|
|
Gets the number of elements in the array's second dimension.
Definition at line 96 of file SMatrix.h. Referenced by sgemm(), sgemm_n_t(), sgemm_t_n(), sgemm_t_t(), sgemv(), sgemv_t(), SLU_invert(), and SSYEV(). |
|
|
Sets this array equal to itself times a scalar value. Definition at line 200 of file SMatrix.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 210 of file SMatrix.h. References F77_FUNC. |
|
|
Sets all of the elements in an array equal to the same value. |
|
|
Sets two arrays equal. Definition at line 176 of file SMatrix.h. References allocate(), F77_FUNC, n_1, n_2, and pArray. |
|
|
Get a copy 1D array of the i-th row Definition at line 447 of file SMatrix.h. References F77_FUNC, and SVector::pArray. |
|
|
Return a pointer to the row irow |
|
||||||||||||
|
Rescale a row Definition at line 350 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Dot product between the i-th row and a vector Definition at line 414 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Dot product between the i-th row and a vector Definition at line 368 of file SMatrix.h. References F77_FUNC, SVector::n_1, and SVector::pArray. |
|
||||||||||||
|
Copy an 1D array into the i-th coloumn Definition at line 335 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Copy an 1D array into the i-th coloumn Definition at line 320 of file SMatrix.h. References F77_FUNC, SVector::n_1, and SVector::pArray. |
|
||||||||||||||||
|
Copy an 1D C float array into the i-th row with lda Definition at line 312 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Copy an 1D float array into the i-th row Definition at line 304 of file SMatrix.h. References F77_FUNC. |
|
||||||||||||
|
Copy an 1D array into the i-th row Definition at line 289 of file SMatrix.h. References F77_FUNC, SVector::n_1, and SVector::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 SMatrix Trace |
|
|
Transpose the 2D matrix |
|
||||||||||||
|
Prints the array to a stream. |
|
|
|
1.4.4