List of all members.
|
Public Member Functions |
|
| SimpleVector () |
| | Default constructor, zeroes everything out.
|
|
| SimpleVector (const SimpleVector ©) |
| | Copy constructor.
|
|
| SimpleVector (int dim) |
| | Constructor, creates the vector.
|
|
| ~SimpleVector () |
| | Destructor, frees memory.
|
|
void | set (double *vec) |
| | Set vector_ to vec.
|
|
double | get (int m) |
| | Returns an element value.
|
|
void | set (int m, double val) |
| | Sets an element value.
|
|
double * | to_block_vector () |
| | Returns a copy of vector_.
|
|
int | dim () const |
| | Returns the dimension of the vector.
|
|
double & | operator[] (int i) |
|
void | operator= (const SimpleVector &x) |
|
void | print (FILE *) |
| | Prints the vector.
|
|
void | copy (const SimpleVector *rhs) |
| | Copy rhs to this.
|
Protected Member Functions |
|
void | alloc () |
| | Allocate memory.
|
|
void | release () |
| | Free memory.
|
|
void | copy_from (double *) |
| | Copy data to this.
|
Protected Attributes |
|
double * | vector_ |
| | Vector data.
|
|
int | dim_ |
| | Dimension of the vector.
|
Friends |
|
class | SimpleMatrix |
Detailed Description
The documentation for this class was generated from the following files: