Main Page | Namespace List | Class List | File List | Class Members | File Members

ZVector Class Reference

#include <ZVector.h>

List of all members.

Public Member Functions

int dim1 ()
int size ()
complex< double > * array ()
void allocate (int i)
void deallocate ()
double Norm ()
double AbsoluteSum ()
complex< double > Sum ()
int iMax ()
void operator= (const ZVector &rhs)
void operator= (const double C)
void operator= (const complex< double > C)
complex< double > zdotu (const ZVector &rhs)
complex< double > zdotc (const ZVector &rhs)
ZVector operator+ (const ZVector &rhs)
ZVector operator- (const ZVector &rhs)
void operator *= (complex< double > C)
void operator/= (complex< double > C)
 ZVector ()
 ZVector (int i)
 ZVector (const ZVector &rhs)
 ~ZVector ()
complex< double > & operator() (int i)

Friends

class ZMatrix
ostream & operator<< (ostream &strm, const ZVector &rhs)


Detailed Description

A 1-dimensional template for making arrays. All of the memory allocation and deallocation details are dealt with by the class.

Definition at line 35 of file ZVector.h.


Constructor & Destructor Documentation

ZVector::ZVector  )  [inline]
 

Creates an array.

Definition at line 320 of file ZVector.h.

References lda.

ZVector::ZVector int  i  )  [inline]
 

Creates an array and allocates memory.

Parameters:
i size of the array's first dimension.

Definition at line 329 of file ZVector.h.

References allocate(), and lda.

ZVector::ZVector const ZVector rhs  )  [inline]
 

Creates an array and sets it equal to another array.

Parameters:
rhs array to set this array equal to.

Definition at line 338 of file ZVector.h.

References allocate(), F77_FUNC, lda, n_1, and pArray.

ZVector::~ZVector  )  [inline]
 

Destroy's the array and cleans up the memory.

Definition at line 351 of file ZVector.h.

References deallocate().


Member Function Documentation

double ZVector::AbsoluteSum  )  [inline]
 

Returns the Absolute Sum of the vector

Definition at line 140 of file ZVector.h.

References F77_FUNC, and lda.

Referenced by main().

void ZVector::allocate int  i  )  [inline]
 

Allocates memory for the array.

Parameters:
i size of the array's first dimension.

Definition at line 88 of file ZVector.h.

References deallocate(), and lda.

Referenced by main(), operator=(), and ZVector().

complex<double>* ZVector::array  )  [inline]
 

Gets a pointer to an array containing the array elements. doublehe ordering of this array is NOdouble specified.

Definition at line 80 of file ZVector.h.

Referenced by zgemv(), zgemv_c(), and zgemv_t().

void ZVector::deallocate  )  [inline]
 

Deallocates memory for the array.

Definition at line 115 of file ZVector.h.

Referenced by allocate(), and ~ZVector().

int ZVector::dim1  )  [inline]
 

Gets the number of elements in the array's first dimension.

Returns:
number of elements in the array's first dimension.

Definition at line 67 of file ZVector.h.

int ZVector::iMax  )  [inline]
 

Returns the index of the largest element in pArray

Definition at line 161 of file ZVector.h.

References F77_FUNC, and lda.

Referenced by main().

double ZVector::Norm  )  [inline]
 

Returns the Euclidean Norm of the vector

Definition at line 131 of file ZVector.h.

References F77_FUNC, and lda.

Referenced by main().

void ZVector::operator *= complex< double >  C  )  [inline]
 

Sets this array equal to itself times a scalar value.

Definition at line 299 of file ZVector.h.

References F77_FUNC, and lda.

complex<double>& ZVector::operator() int  i  )  [inline]
 

Accesses element (i) of the array.

Definition at line 356 of file ZVector.h.

ZVector ZVector::operator+ const ZVector rhs  )  [inline]
 

Returns the sum of two arrays.

Definition at line 245 of file ZVector.h.

References F77_FUNC, lda, n_1, and pArray.

ZVector ZVector::operator- const ZVector rhs  )  [inline]
 

Returns the difference of two arrays.

Definition at line 272 of file ZVector.h.

References F77_FUNC, lda, n_1, and pArray.

void ZVector::operator/= complex< double >  C  )  [inline]
 

Sets this array equal to itself divided by a scalar value.

Definition at line 309 of file ZVector.h.

References F77_FUNC, and lda.

void ZVector::operator= const complex< double >  C  )  [inline]
 

Sets all of the elements in an array equal to the same value.

Definition at line 193 of file ZVector.h.

void ZVector::operator= const double  C  )  [inline]
 

Sets all of the elements in an array equal to the same value.

Definition at line 181 of file ZVector.h.

References dcmplx().

void ZVector::operator= const ZVector rhs  )  [inline]
 

Sets two arrays equal.

Definition at line 171 of file ZVector.h.

References allocate(), F77_FUNC, lda, n_1, and pArray.

int ZVector::size  )  [inline]
 

Gets the total number of elements in the array.

Returns:
total number of elements in the array.

Definition at line 74 of file ZVector.h.

complex<double> ZVector::Sum  )  [inline]
 

Returns the Sum of the vector

Definition at line 149 of file ZVector.h.

References dcmplx().

Referenced by main().

complex<double> ZVector::zdotc const ZVector rhs  )  [inline]
 

Definition at line 223 of file ZVector.h.

References F77_FUNC, lda, n_1, and pArray.

Referenced by main().

complex<double> ZVector::zdotu const ZVector rhs  )  [inline]
 

Returns the dot product of two arrays.

Definition at line 205 of file ZVector.h.

References F77_FUNC, lda, n_1, and pArray.

Referenced by main().


Friends And Related Function Documentation

ostream& operator<< ostream &  strm,
const ZVector rhs
[friend]
 

Prints the array to a stream.

Definition at line 362 of file ZVector.h.

friend class ZMatrix [friend]
 

Definition at line 38 of file ZVector.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 16 19:03:50 2006 for MyLapack by  doxygen 1.4.4