GVector Class Reference

#include <GVector.h>

List of all members.

Public Member Functions

 GVector (int i)
 GVector (const GVector &gvector)
 GVector (const Tuple2f &tuple2f)
 GVector (const Tuple3d &tuple3d)
 GVector (const Tuple3f &tuple3f)
 GVector (const Tuple4d &tuple4d)
 GVector (const Tuple4f &tuple4f)
 GVector (const double ad[], int i)
virtual ~GVector ()
void LUDBackSolve (GMatrix &gmatrix, GVector &gvector, GVector &gvector1)
void SVDBackSolve (GMatrix &gmatrix, GMatrix &gmatrix1, GMatrix &gmatrix2, GVector &gvector)
void add (const GVector &gvector)
void add (const GVector &gvector, const GVector &gvector1)
double angle (const GVector &gvector) const
double dot (const GVector &gvector) const
virtual bool epsilonEquals (GVector gvector, double d) const
virtual bool equals (const GVector &gvector)
double getElement (int i) const
int getSize () const
int hashCode () const
void interpolate (const GVector &gvector, double d)
void interpolate (const GVector &gvector, const GVector &gvector1, double d)
void mul (const GMatrix &gmatrix, const GVector &gvector)
void mul (const GVector &gvector, const GMatrix &gmatrix)
void negate ()
double norm () const
double normSquared () const
void normalize ()
void normalize (const GVector &gvector)
void scale (double d)
void scale (double d, const GVector &gvector)
void scaleAdd (double d, const GVector &gvector, const GVector &gvector1)
void set (const GVector &gvector)
void set (const Tuple2f &tuple2f)
void set (const Tuple3d &tuple3d)
void set (const Tuple3f &tuple3f)
void set (const Tuple4d &tuple4d)
void set (const Tuple4f &tuple4f)
void set (const double ad[])
void setElement (int i, double d)
void setSize (int i)
void sub (const GVector &gvector)
void sub (GVector gvector, GVector gvector1)
void zero (int from=0)

Public Attributes

double * values

Private Member Functions

double * resize (int i)

Private Attributes

int length


Detailed Description

Definition at line 12 of file GVector.h.


Constructor & Destructor Documentation

GVector::GVector int  i  )  [inline, explicit]
 

Definition at line 17 of file GVector.h.

GVector::GVector const GVector gvector  )  [inline]
 

Definition at line 23 of file GVector.h.

References length, and values.

GVector::GVector const Tuple2f tuple2f  )  [inline]
 

Definition at line 30 of file GVector.h.

GVector::GVector const Tuple3d tuple3d  )  [inline]
 

Definition at line 36 of file GVector.h.

GVector::GVector const Tuple3f tuple3f  )  [inline]
 

Definition at line 42 of file GVector.h.

GVector::GVector const Tuple4d tuple4d  )  [inline]
 

Definition at line 48 of file GVector.h.

GVector::GVector const Tuple4f tuple4f  )  [inline]
 

Definition at line 54 of file GVector.h.

GVector::GVector const double  ad[],
int  i
[inline]
 

Definition at line 68 of file GVector.h.

virtual GVector::~GVector  )  [inline, virtual]
 

Definition at line 75 of file GVector.h.


Member Function Documentation

void GVector::add const GVector gvector,
const GVector gvector1
[inline]
 

Definition at line 88 of file GVector.h.

References values.

void GVector::add const GVector gvector  )  [inline]
 

Definition at line 83 of file GVector.h.

References values.

double GVector::angle const GVector gvector  )  const [inline]
 

Definition at line 93 of file GVector.h.

References norm().

double GVector::dot const GVector gvector  )  const [inline]
 

Definition at line 97 of file GVector.h.

References values.

virtual bool GVector::epsilonEquals GVector  gvector,
double  d
const [inline, virtual]
 

Definition at line 105 of file GVector.h.

References length, and values.

virtual bool GVector::equals const GVector gvector  )  [inline, virtual]
 

Definition at line 141 of file GVector.h.

References length, and values.

double GVector::getElement int  i  )  const [inline]
 

Definition at line 157 of file GVector.h.

int GVector::getSize  )  const [inline]
 

Definition at line 161 of file GVector.h.

Referenced by GMatrix::getColumn(), GMatrix::getRow(), LUDBackSolve(), and GMatrix::mul().

int GVector::hashCode  )  const [inline]
 

Definition at line 165 of file GVector.h.

void GVector::interpolate const GVector gvector,
const GVector gvector1,
double  d
[inline]
 

Definition at line 178 of file GVector.h.

References values.

void GVector::interpolate const GVector gvector,
double  d
[inline]
 

Definition at line 173 of file GVector.h.

References values.

void GVector::LUDBackSolve GMatrix gmatrix,
GVector gvector,
GVector gvector1
 

Definition at line 5 of file GVector.cc.

References getSize(), GMatrix::luBacksubstitution(), GMatrix::nCol, GMatrix::nRow, values, and GMatrix::values.

void GVector::mul const GVector gvector,
const GMatrix gmatrix
 

Definition at line 50 of file GVector.cc.

References length, GMatrix::values, and values.

void GVector::mul const GMatrix gmatrix,
const GVector gvector
 

Definition at line 42 of file GVector.cc.

References length, GMatrix::values, and values.

Referenced by SVDBackSolve().

void GVector::negate void   )  [inline]
 

Definition at line 187 of file GVector.h.

double GVector::norm  )  const [inline]
 

Definition at line 192 of file GVector.h.

Referenced by angle().

void GVector::normalize const GVector gvector  )  [inline]
 

Definition at line 212 of file GVector.h.

References normSquared(), and values.

void GVector::normalize  )  [inline]
 

Definition at line 205 of file GVector.h.

double GVector::normSquared  )  const [inline]
 

Definition at line 196 of file GVector.h.

Referenced by normalize().

double* GVector::resize int  i  )  [inline, private]
 

Definition at line 330 of file GVector.h.

void GVector::scale double  d,
const GVector gvector
[inline]
 

Definition at line 223 of file GVector.h.

References values.

void GVector::scale double  d  )  [inline]
 

Definition at line 219 of file GVector.h.

void GVector::scaleAdd double  d,
const GVector gvector,
const GVector gvector1
[inline]
 

Definition at line 228 of file GVector.h.

References values.

void GVector::set const double  ad[]  )  [inline]
 

Definition at line 285 of file GVector.h.

void GVector::set const Tuple4f tuple4f  )  [inline]
 

Definition at line 277 of file GVector.h.

void GVector::set const Tuple4d tuple4d  )  [inline]
 

Definition at line 269 of file GVector.h.

void GVector::set const Tuple3f tuple3f  )  [inline]
 

Definition at line 261 of file GVector.h.

void GVector::set const Tuple3d tuple3d  )  [inline]
 

Definition at line 253 of file GVector.h.

void GVector::set const Tuple2f tuple2f  )  [inline]
 

Definition at line 245 of file GVector.h.

void GVector::set const GVector gvector  )  [inline]
 

Definition at line 233 of file GVector.h.

References length, and values.

void GVector::setElement int  i,
double  d
[inline]
 

Definition at line 290 of file GVector.h.

void GVector::setSize int  i  )  [inline]
 

Definition at line 294 of file GVector.h.

Referenced by GMatrix::getColumn(), and GMatrix::getRow().

void GVector::sub GVector  gvector,
GVector  gvector1
[inline]
 

Definition at line 311 of file GVector.h.

References values.

void GVector::sub const GVector gvector  )  [inline]
 

Definition at line 306 of file GVector.h.

References values.

void GVector::SVDBackSolve GMatrix gmatrix,
GMatrix gmatrix1,
GMatrix gmatrix2,
GVector gvector
 

Definition at line 34 of file GVector.cc.

References GMatrix::invert(), mul(), GMatrix::mul(), GMatrix::mulTransposeRight(), GMatrix::nCol, and GMatrix::nRow.

void GVector::zero int  from = 0  )  [inline]
 

Definition at line 324 of file GVector.h.


Member Data Documentation

int GVector::length [private]
 

Definition at line 13 of file GVector.h.

Referenced by epsilonEquals(), equals(), GVector(), mul(), and set().

double* GVector::values
 

Definition at line 15 of file GVector.h.

Referenced by add(), dot(), epsilonEquals(), equals(), GMatrix::getColumn(), GMatrix::getRow(), GVector(), interpolate(), GMatrix::LUD(), LUDBackSolve(), mul(), GMatrix::mul(), normalize(), scale(), scaleAdd(), set(), GMatrix::setColumn(), GMatrix::setRow(), and sub().


The documentation for this class was generated from the following files:
Generated on Thu Sep 29 13:39:45 2005 for vecmath by  doxygen 1.4.4