#include <CS_ARRAY.hpp>
Collaboration diagram for CS_ARRAY< T >:

Public Member Functions | |
| CS_ARRAY (unsigned long int size, std::string descr) | |
| The only valid constructor. | |
| unsigned long int | size () |
| Returns the size of the array. | |
| T & | operator[] (unsigned long int i) |
| []-overloading. | |
| const T & | const_access (unsigned long int i) |
| Const variant of access(). | |
| T & | unrecorded_access (const unsigned long int i) |
| Performs unrecorded (not-simulated) access to stored values. | |
| const T & | unrecorded_const_access (const unsigned long int i) const |
| Const variant of unrecorded_access. | |
| T & | access (unsigned long int i) |
| Function alias of the []-operator. | |
| unsigned long int | getSize () const |
| Gets the array size. | |
| void | unrecordedCopyTo (T *target) |
| Copies caption of current array to target, non-simulated array. | |
| void | unrecordedCopyFrom (T *target) |
| Copies caption from a target, non-simulated array into current array. | |
| void | yaxpy (const CS_MATRIX< T > &A, const CS_ARRAY< T > &x) |
| Performs an yaxpy operation. | |
| void | zaxpy (const CS_MATRIX< T > &A, const CS_ARRAY< T > &x, const CS_ARRAY< T > &y) |
| Performs a zaxpy operation. | |
| void | zax (const CS_MATRIX< T > &A, const CS_ARRAY< T > &x) |
| Performs a yax operation. | |
Static Public Member Functions | |
| std::string | fDim (const CS_ARRAY &obj) |
| Get the dimensions of the array in string format. | |
Public Attributes | |
| std::string | _descr |
| Description of the current variable. | |
Protected Attributes | |
| T * | _array |
| Contains the actual data. | |
| unsigned long int | _size |
| Size of _array. | |
| unsigned long int | FAC |
| Variable used to check if data has been brought into cache before. | |
|
||||||||||
|
Get the dimensions of the array in string format.
|
|
||||||||||||||||
|
Performs an yaxpy operation. Calculates y = Ax+y, with A a CS_MATRIX, X a CS_ARRAY and y this CS_ARRAY. Dimensions must agree, this is checked explicitly. |
|
||||||||||||||||
|
Performs a yax operation. Calculates z = Ax, with A a CS_MATRIX, x a CS_ARRAY, and z this CS_ARRAY. Dimensions must agree, this is checked explicitly. TODO Check order of access in non-simulated case and compare! |
|
||||||||||||||||||||
|
Performs a zaxpy operation. Calculates z = Ax+y, with A a CS_MATRIX, x & y CS_ARRAYs and z this CS_ARRAY. Dimensions must agree, this is checked explicitly. TODO Check order of access in non-simulated case and compare! |
1.3.9.1