Public Member Functions | Private Attributes

QCAD::mathVector Class Reference

#include <QCAD_SaddleValueResponseFunction.hpp>

List of all members.

Public Member Functions

 mathVector ()
 mathVector class: a vector with math operations (helper class)
 mathVector (int n)
 mathVector (const mathVector &copy)
 ~mathVector ()
void resize (std::size_t n)
void fill (double d)
void fill (const double *vec)
double dot (const mathVector &v2) const
double distanceTo (const mathVector &v2) const
double distanceTo (const double *p) const
double norm () const
double norm2 () const
void normalize ()
double * data ()
const double * data () const
std::size_t size () const
mathVectoroperator= (const mathVector &rhs)
mathVector operator+ (const mathVector &v2) const
mathVector operator- (const mathVector &v2) const
mathVector operator* (double scale) const
mathVectoroperator+= (const mathVector &v2)
mathVectoroperator-= (const mathVector &v2)
mathVectoroperator*= (double scale)
mathVectoroperator/= (double scale)
double & operator[] (int i)
const double & operator[] (int i) const

Private Attributes

int dim_
std::vector< double > data_

Detailed Description

Definition at line 18 of file QCAD_SaddleValueResponseFunction.hpp.


Constructor & Destructor Documentation

QCAD::mathVector::mathVector (  ) 

mathVector class: a vector with math operations (helper class)

Definition at line 1917 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector::mathVector ( int  n  ) 

Definition at line 1922 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector::mathVector ( const mathVector copy  ) 

Definition at line 1929 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector::~mathVector (  ) 

Definition at line 1935 of file QCAD_SaddleValueResponseFunction.cpp.


Member Function Documentation

void QCAD::mathVector::resize ( std::size_t  n  ) 

Definition at line 1941 of file QCAD_SaddleValueResponseFunction.cpp.

void QCAD::mathVector::fill ( double  d  ) 

Definition at line 1948 of file QCAD_SaddleValueResponseFunction.cpp.

void QCAD::mathVector::fill ( const double *  vec  ) 

Definition at line 1954 of file QCAD_SaddleValueResponseFunction.cpp.

double QCAD::mathVector::dot ( const mathVector v2  )  const

Definition at line 1960 of file QCAD_SaddleValueResponseFunction.cpp.

double QCAD::mathVector::distanceTo ( const mathVector v2  )  const

Definition at line 2041 of file QCAD_SaddleValueResponseFunction.cpp.

double QCAD::mathVector::distanceTo ( const double *  p  )  const

Definition at line 2049 of file QCAD_SaddleValueResponseFunction.cpp.

double QCAD::mathVector::norm (  )  const

Definition at line 2057 of file QCAD_SaddleValueResponseFunction.cpp.

double QCAD::mathVector::norm2 (  )  const

Definition at line 2063 of file QCAD_SaddleValueResponseFunction.cpp.

void QCAD::mathVector::normalize (  ) 

Definition at line 2070 of file QCAD_SaddleValueResponseFunction.cpp.

double * QCAD::mathVector::data (  ) 

Definition at line 2082 of file QCAD_SaddleValueResponseFunction.cpp.

const double * QCAD::mathVector::data (  )  const

Definition at line 2076 of file QCAD_SaddleValueResponseFunction.cpp.

std::size_t QCAD::mathVector::size (  )  const

Definition at line 2089 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector & QCAD::mathVector::operator= ( const mathVector rhs  ) 

Definition at line 1969 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector QCAD::mathVector::operator+ ( const mathVector v2  )  const

Definition at line 1977 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector QCAD::mathVector::operator- ( const mathVector v2  )  const

Definition at line 1985 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector QCAD::mathVector::operator* ( double  scale  )  const

Definition at line 1993 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector & QCAD::mathVector::operator+= ( const mathVector v2  ) 

Definition at line 2001 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector & QCAD::mathVector::operator-= ( const mathVector v2  ) 

Definition at line 2008 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector & QCAD::mathVector::operator*= ( double  scale  ) 

Definition at line 2015 of file QCAD_SaddleValueResponseFunction.cpp.

QCAD::mathVector & QCAD::mathVector::operator/= ( double  scale  ) 

Definition at line 2022 of file QCAD_SaddleValueResponseFunction.cpp.

double & QCAD::mathVector::operator[] ( int  i  ) 

Definition at line 2029 of file QCAD_SaddleValueResponseFunction.cpp.

const double & QCAD::mathVector::operator[] ( int  i  )  const

Definition at line 2035 of file QCAD_SaddleValueResponseFunction.cpp.


Member Data Documentation

int QCAD::mathVector::dim_ [private]

Definition at line 56 of file QCAD_SaddleValueResponseFunction.hpp.

std::vector<double> QCAD::mathVector::data_ [private]

Definition at line 57 of file QCAD_SaddleValueResponseFunction.hpp.


The documentation for this class was generated from the following files: