Main Page | Class List | File List | Class Members

CS_ARRAY< T > Class Template Reference

Denotes the base simulated datatype. More...

#include <CS_ARRAY.hpp>

Collaboration diagram for CS_ARRAY< T >:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

template<typename T>
class CS_ARRAY< T >

Denotes the base simulated datatype.


Member Function Documentation

template<typename T>
std::string CS_ARRAY< T >::fDim const CS_ARRAY< T > &  obj  )  [inline, static]
 

Get the dimensions of the array in string format.

Parameters:
obj The array to get the dimensions from.
Returns:
The dimensions in string format.

template<typename T>
void CS_ARRAY< T >::yaxpy const CS_MATRIX< T > &  A,
const CS_ARRAY< T > &  x
[inline]
 

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.

template<typename T>
void CS_ARRAY< T >::zax const CS_MATRIX< T > &  A,
const CS_ARRAY< T > &  x
[inline]
 

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!

template<typename T>
void CS_ARRAY< T >::zaxpy const CS_MATRIX< T > &  A,
const CS_ARRAY< T > &  x,
const CS_ARRAY< T > &  y
[inline]
 

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!


The documentation for this class was generated from the following file:
Generated on Fri Aug 15 18:12:23 2008 for Run-timeCacheSimulator by  doxygen 1.3.9.1