40 evVector(
const unsigned int num_dimensions);
41 evVector(
const QccVector vector,
const unsigned int num_dimensions);
59 const double &
operator [] (
const unsigned int index)
const;
75 operator double()
const;
77 double Norm(
void)
const;
78 double Angle(
void)
const;
79 double Max(
void)
const;
81 double Min(
void)
const;
84 virtual void PrintSelf(
const int tabbing)
const;
98 Vector(num_dimensions, 0.0)
103 const unsigned int num_dimensions)
107 this->
Vector = std::vector<double>();
108 for (index = 0; index < num_dimensions; index++)
109 this->
Vector.push_back(vector[index]);
119 const unsigned int num_dimensions)
121 this->
Vector = std::vector<double>();
122 for (
unsigned int index = 0;
123 index < std::min(num_dimensions, (
unsigned int)vector.
Vector.size());
125 this->
Vector.push_back(vector[index]);
132 for (
unsigned int component = 0; component < this->
Vector.size();
134 this->
Vector[component] = (
double)address.
Get(component);
145 this->
Vector.resize(dimension, value);
151 return(this->
Vector.size());
157 return(this->
Vector.empty());
163 return(this->
Vector[index]);
169 return(this->
Vector[index]);
183 std::fill(this->
Vector.begin(),
203 index < result.
Vector.size();
218 index < result.
Vector.size();
239 index < result.
Vector.size();
252 this->
Vector = std::vector<double>();
256 index < this->
Vector.size();
269 this->
Vector = std::vector<double>();
273 index < this->
Vector.size();
281 static inline double NaN(
void)
286 unsigned char x2[
sizeof(double)];
290 for (i = 0; i <
sizeof(double); i++)
302 return(std::inner_product(this->
Vector.begin(),
315 for (index = 0; index < vector.
Dimension(); index++)
316 result[index] *= scalar;
328 for (index = 0; index < vector.
Dimension(); index++)
329 result[index] *= scalar;
340 index < this->
Vector.size();
342 this->
Vector[index] *= scalar;
354 for (index = 0; index < vector.
Dimension(); index++)
355 result[index] /= scalar;
366 index < this->
Vector.size();
368 this->
Vector[index] /= scalar;
386 inline evVector::operator double()
const 388 if (this->
Vector.size() == 1)
397 return(sqrt((*
this) * (*
this)));
406 return(atan2((*
this)[1], (*
this)[0]) + M_PI);
415 double max = *std::max_element(this->
Vector.begin(),
429 for (
unsigned int component = 0;
430 component < this->
Vector.size();
432 (*
this)[component] = std::max(vector1[component],
442 double min = *std::min_element(this->
Vector.begin(),
456 for (
unsigned int component = 0;
457 component < this->
Vector.size();
459 (*
this)[component] = std::min(vector1[component],
474 for (index = 0; index < vector.
Dimension(); index++)
475 outfile << vector[index] <<
" ";
evVector operator-(void) const
Definition: evVector.h:211
double operator*(const evVector &vector) const
Definition: evVector.h:297
unsigned int Dimension(void) const
Definition: evVector.h:149
static double NaN(void)
Definition: evVector.h:281
void SetDimension(const unsigned int dimension)
Definition: evVector.h:142
bool operator!=(const evVector &vector) const
Definition: evVector.h:380
virtual ~evVector(void)
Definition: evVector.h:138
double Min(void) const
Definition: evVector.h:437
virtual void PrintSelf(const int tabbing) const
Definition: evVector.h:36
double & operator[](const unsigned int index)
Definition: evVector.h:161
Definition: evAddress.h:37
virtual const evString GetClassName(void) const
Definition: evVector.h:48
Definition: evDataObject.h:31
evVector operator/(const evVector &vector, const double scalar)
Definition: evVector.h:348
int * Get(void)
Definition: evAddress.h:124
double Angle(void) const
Definition: evVector.h:401
std::ostream & operator<<(std::ostream &outfile, const evVector &vector)
Definition: evVector.h:464
bool IsNull(void) const
Definition: evVector.h:155
evVector & operator-=(const evVector &vector)
Definition: evVector.h:264
evVector operator=(const evVector &vector)
Definition: evVector.h:173
double Norm(void) const
Definition: evVector.h:395
unsigned int GetNumDimensions(void) const
Definition: evAddress.h:148
std::vector< double > Vector
Definition: evVector.h:89
evVector & operator/=(const double scalar)
Definition: evVector.h:361
double Max(void) const
Definition: evVector.h:410
bool operator==(const evVector &vector) const
Definition: evVector.h:374
evVector & operator+=(const evVector &vector)
Definition: evVector.h:247
Definition: evString.h:30
evVector & operator*=(const double scalar)
Definition: evVector.h:335
evVector operator+(const evVector &vector) const
Definition: evVector.h:190
evVector(void)
Definition: evVector.h:93