#include <CVector.hpp>
Collaboration diagram for CVector:
Purpose: Define the concept of Real Vector.
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2003, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
CVector (int size) | |
CVector (int size, const RComplex &adata) | |
CVector (const CVector &v) | |
CVector | operator= (const CVector &v) |
~CVector () | |
CVector * | sub (int start, int step, int end) |
int | size () const |
void | load (CVector *v) |
RComplex * | getData () |
void | set0 (int index, double value) |
void | set0 (int index, const RComplex &value) |
RComplex | get0 (int index) const |
void | set (int index, double value) |
void | set (int index, const RComplex &value) |
RComplex | get (int index) const |
void | setAll (double value) |
void | setAll (const RComplex &value) |
void | operator+= (double value) |
void | operator-= (double value) |
void | operator *= (double value) |
void | operator/= (double value) |
void | operator+= (const RComplex &value) |
void | operator-= (const RComplex &value) |
void | operator *= (const RComplex &value) |
void | operator/= (const RComplex &value) |
void | operator+= (const CVector &v) |
void | operator-= (const CVector &v) |
void | operator *= (const CVector &v) |
void | operator/= (const CVector &v) |
void | output () |
void | output (FILE *file) |
Public Attributes | |
CVectorT | t () |
RComplex | vT_v () |
RComplex | norme2 () |
RComplex | sum () |
RComplex | mean () |
RComplex | sigma () |
CVector | sqrt () |
CVector | sqr () |
Private Attributes | |
int | dataSize |
RComplex * | data |
RComplex * | data1 |
Friends | |
RComplex | operator * (const CVectorT &vt, const CVector &u) |
CVector | operator+ (const CVector &v, double a) |
CVector | operator+ (double a, const CVector &v) |
CVector | operator- (const CVector &v, double a) |
CVector | operator- (double a, const CVector &v) |
CVector | operator * (const CVector &v, double a) |
CVector | operator * (double a, const CVector &v) |
CVector | operator/ (const CVector &v, double a) |
CVector | operator+ (const CVector &v, const RComplex &a) |
CVector | operator+ (const RComplex &a, const CVector &v) |
CVector | operator- (const CVector &v, const RComplex &a) |
CVector | operator- (const RComplex &a, const CVector &v) |
CVector | operator * (const CVector &v, const RComplex &a) |
CVector | operator * (const RComplex &a, const CVector &v) |
CVector | operator/ (const CVector &v, const RComplex &a) |
CVector | operator+ (const CVector &v1, const CVector &v2) |
CVector | operator- (const CVector &v1, const CVector &v2) |