#include <SVector.h>
Public Member Functions | |
int | dim1 () |
int | size () |
float * | array () |
void | allocate (int i) |
void | deallocate () |
float | Norm () |
float | AbsoluteSum () |
float | Sum () |
int | iMax () |
void | operator= (const SVector &rhs) |
void | operator= (const float C) |
float | operator * (const SVector &rhs) |
SVector | operator * (float rhs) |
SVector | operator+ (const SVector &rhs) |
SVector | operator- (const SVector &rhs) |
void | operator *= (float C) |
void | operator/= (float C) |
SVector () | |
SVector (int i) | |
SVector (const SVector &rhs) | |
SVector (int dim, float *rhs) | |
void | set (int ndim, float *rhs) |
void | get (int dim, float *rhs) |
~SVector () | |
float & | operator() (int i) |
Friends | |
class | SMatrix |
ostream & | operator<< (ostream &strm, const SVector &rhs) |
Definition at line 36 of file SVector.h.
|
Creates an array. Definition at line 306 of file SVector.h. References lda. |
|
Creates an array and allocates memory.
Definition at line 315 of file SVector.h. References allocate(), and lda. |
|
Creates an array and sets it equal to another array.
Definition at line 324 of file SVector.h. References allocate(), F77_FUNC, lda, n_1, and pArray. |
|
Creates an array and sets it equal to a C array.
Definition at line 339 of file SVector.h. References allocate(), F77_FUNC, and lda. |
|
Destroy's the array and cleans up the memory. Definition at line 388 of file SVector.h. References deallocate(). |
|
Returns the Absolute Sum of the vector |
|
Allocates memory for the array.
Definition at line 89 of file SVector.h. References deallocate(), and lda. Referenced by main(), operator=(), and SVector(). |
|
Gets a pointer to an array containing the array elements. floathe ordering of this array is NOfloat specified. Definition at line 81 of file SVector.h. Referenced by sgemv(), sgemv_t(), SLU_solve(), and SSYEV(). |
|
Deallocates memory for the array. Definition at line 115 of file SVector.h. Referenced by allocate(), and ~SVector(). |
|
Gets the number of elements in the array's first dimension.
|
|
Copy all elements in a C array from the Vector |
|
Returns the index of the largest element in pArray |
|
Returns the Euclidean Norm of the vector |
|
Returns the product of an array and a float. |
|
Returns the dot product of two arrays. |
|
Sets this array equal to itself times a scalar value. |
|
Accesses element |
|
Returns the sum of two arrays. |
|
Returns the difference of two arrays. |
|
Sets this array equal to itself divided by a scalar value. |
|
Sets all of the elements in an array equal to the same value. |
|
Sets two arrays equal. Definition at line 171 of file SVector.h. References allocate(), F77_FUNC, lda, n_1, and pArray. |
|
Copy all elements from a C array in the Vector |
|
Gets the total number of elements in the array.
|
|
Returns the Absolute Sum of the vector |
|
Prints the array to a stream. |
|
|