VectorN Class Reference

#include <math/VectorN.h>

Inherited by Configuration.

Inheritance diagram for VectorN:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VectorN ()
 VectorN (const VectorN &right)
 VectorN (const double a)
 VectorN (const double a, const double b)
 VectorN (const double a, const double b, const double c)
 VectorN (const double a, const double b, const double c, const double d)
virtual ~VectorN ()
void SetLength (const int length)
double & operator[] (const unsigned int index)
const double & operator[] (const unsigned int index) const
VectorNoperator= (const VectorN &right)
VectorN operator+ (const VectorN &right) const
VectorN operator- (const VectorN &right) const
VectorN operator * (const double right) const
VectorNoperator *= (const double right)
VectorNoperator+= (const VectorN &right)
VectorNoperator-= (const VectorN &right)
VectorN operator/ (const double right) const
VectorNoperator/= (const double right)
double Dot (const VectorN &right) const
unsigned int Length () const
unsigned int Size () const
unsigned int size () const
virtual void Output () const
bool operator== (const VectorN &right) const
bool operator!= (const VectorN &right) const
bool Compare (const VectorN &right, const double &tol) const
void Append (const VectorN &right)
void Normalize ()
double MagSquared () const
double Magnitude () const
void clear ()
void push_back (const double newElement)
void reserve (const unsigned int size)
void resize (const unsigned int size, const double fill=0.0)

Private Attributes

std::vector< double > elements

Detailed Description

Definition at line 8 of file VectorN.h.


Constructor & Destructor Documentation

VectorN::VectorN  ) 
 

Definition at line 15 of file VectorN.cpp.

VectorN::VectorN const VectorN right  ) 
 

Definition at line 19 of file VectorN.cpp.

References elements, and size().

Here is the call graph for this function:

VectorN::VectorN const double  a  )  [explicit]
 

Definition at line 35 of file VectorN.cpp.

References SetLength().

Here is the call graph for this function:

VectorN::VectorN const double  a,
const double  b
 

Definition at line 47 of file VectorN.cpp.

References SetLength().

Here is the call graph for this function:

VectorN::VectorN const double  a,
const double  b,
const double  c
 

Definition at line 59 of file VectorN.cpp.

References operator[](), and SetLength().

Here is the call graph for this function:

VectorN::VectorN const double  a,
const double  b,
const double  c,
const double  d
 

Definition at line 72 of file VectorN.cpp.

References SetLength().

Here is the call graph for this function:

VectorN::~VectorN  )  [virtual]
 

Definition at line 82 of file VectorN.cpp.

References elements.


Member Function Documentation

void VectorN::Append const VectorN right  ) 
 

Definition at line 212 of file VectorN.cpp.

References elements.

void VectorN::clear  ) 
 

Definition at line 370 of file VectorN.cpp.

References elements.

Referenced by IK_ACA::MinimizeDistance().

bool VectorN::Compare const VectorN right,
const double &  tol
const
 

Definition at line 222 of file VectorN.cpp.

References Length().

Referenced by IK_ACA::Search().

Here is the call graph for this function:

double VectorN::Dot const VectorN right  )  const
 

Definition at line 249 of file VectorN.cpp.

References elements, and size().

Referenced by ClosestPoint(), and DistanceSquared().

Here is the call graph for this function:

unsigned int VectorN::Length  )  const
 

Definition at line 266 of file VectorN.cpp.

References elements.

Referenced by Compare(), Server::ConfigureRobot(), PL_SimplexSubdivision::Node::Contains(), PL_SimplexSubdivision::Node::ContainsCompletely(), PL_GraphBase::Distance(), PL_MPEP::Distance(), PL_RRT_ClosedChain::Distance(), PL_RGD_RRT::Distance(), LocalPlannerClosed::Distance(), PL_ATACE::Distance(), PL_MPEP::DistanceInActiveJoints(), Configuration::DOF(), CJacobian::GetPhyVelocity(), IK_InvKinBase::GetTransformFrame(), Server::GoalConfig(), PL_Astar::InvertStepSize(), MagSquared(), Matrixmxn::operator *(), operator-(), operator<<(), operator=(), operator==(), operator>>(), Output(), PL_GraphBase::SetCollisionDetector(), PL_Astar::SetCollisionDetector(), CD_BasicStyle::SetConfiguration(), Universe::SetConfiguration(), IK_InvKinBase::SetGoalFrame(), Size(), Server::StartConfig(), PL_SimplexSubdivision::SubdivideNode(), and PL_SimplexSubdivision::Node::Volume().

double VectorN::Magnitude  )  const
 

Definition at line 347 of file VectorN.cpp.

Referenced by IK_Jacobian::ComputeHomogeneousTerm(), PL_RRT_ClosedChain::ConnectToGoalJacobian(), PL_RRT_ClosedChain::ExtendJacobian(), IK_ACA::GetNextConfig(), CD_LinearContinuous::IsCompletelyWithinObstaclesNoWrapping(), PL_PRM_ClosedJacobian::IsInterfering(), CD_LinearContinuous::IsInterferingLinearNoWrapping(), Normalize(), and PL_RRT_ClosedChain::TestJacobianConnection().

double VectorN::MagSquared  )  const
 

Definition at line 333 of file VectorN.cpp.

References Length().

Referenced by ClosestPoint(), DistanceSquared(), PL_Neural::EdgeRepulsion(), and PL_Neural::RepulsiveVector().

Here is the call graph for this function:

void VectorN::Normalize  ) 
 

Definition at line 359 of file VectorN.cpp.

References Magnitude(), and operator/=().

Referenced by IK_ACA::GetNextConfig().

Here is the call graph for this function:

VectorN VectorN::operator * const double  right  )  const
 

Definition at line 145 of file VectorN.cpp.

References elements.

VectorN & VectorN::operator *= const double  right  ) 
 

Definition at line 157 of file VectorN.cpp.

References elements, and size().

Here is the call graph for this function:

bool VectorN::operator!= const VectorN right  )  const
 

Definition at line 304 of file VectorN.cpp.

VectorN VectorN::operator+ const VectorN right  )  const
 

Definition at line 118 of file VectorN.cpp.

References elements.

VectorN & VectorN::operator+= const VectorN right  ) 
 

Definition at line 168 of file VectorN.cpp.

References elements.

VectorN VectorN::operator- const VectorN right  )  const
 

Definition at line 130 of file VectorN.cpp.

References elements, IJG_Assert, and Length().

Here is the call graph for this function:

VectorN & VectorN::operator-= const VectorN right  ) 
 

Definition at line 177 of file VectorN.cpp.

References elements.

VectorN VectorN::operator/ const double  right  )  const
 

Definition at line 311 of file VectorN.cpp.

References elements.

VectorN & VectorN::operator/= const double  right  ) 
 

Definition at line 324 of file VectorN.cpp.

References elements.

Referenced by Normalize().

VectorN & VectorN::operator= const VectorN right  ) 
 

Definition at line 186 of file VectorN.cpp.

References elements, and Length().

Referenced by Configuration::operator=().

Here is the call graph for this function:

bool VectorN::operator== const VectorN right  )  const
 

Definition at line 282 of file VectorN.cpp.

References Length().

Here is the call graph for this function:

const double & VectorN::operator[] const unsigned int  index  )  const [inline]
 

Definition at line 84 of file VectorN.h.

References elements, IJG_Assert, and size().

Here is the call graph for this function:

double & VectorN::operator[] const unsigned int  index  ) 
 

Definition at line 109 of file VectorN.cpp.

References elements, and size().

Referenced by Configuration::GetJointVar(), Configuration::GlDraw(), Configuration::SetJointVar(), and VectorN().

Here is the call graph for this function:

void VectorN::Output  )  const [virtual]
 

Definition at line 271 of file VectorN.cpp.

References Length().

Referenced by PL_PrmIjg::PrintGraph().

Here is the call graph for this function:

void VectorN::push_back const double  newElement  ) 
 

Definition at line 380 of file VectorN.cpp.

References elements.

Referenced by PL_SimplexSubdivision::AddNode().

void VectorN::reserve const unsigned int  size  ) 
 

Definition at line 390 of file VectorN.cpp.

References elements.

void VectorN::resize const unsigned int  size,
const double  fill = 0.0
 

Definition at line 400 of file VectorN.cpp.

References elements.

void VectorN::SetLength const int  length  ) 
 

Definition at line 90 of file VectorN.cpp.

References elements.

Referenced by CD_LinearDiscrete::CD_LinearDiscrete(), CRedundant::CombineConfiguration(), PL_ForTest::ComputeDeltaEndEff(), IK_ACA::ComputeEndEffDiff(), IK_Jacobian::ComputeEndEffVel(), PL_Sandros::GenerateNewNode(), PL_Sandros::GenerateNewNodeGrid(), PL_Range_Sensor::GenerateRandomConfig(), PL_PrmIjg::GenerateRandomConfig(), PL_GraphBase::GenerateRandomConfig(), PL_IanRandom::GenerateRandomConfig(), PL_ATACE::GenerateRandomConfig(), Matrixmxn::GetColumnVector(), CPassive::GetConfiguration(), CActive::GetConfiguration(), Universe::GetConfiguration(), CRedundant::GetConfigurationByActive(), PL_MPEP::GetConfigurationByDirection(), IK_InvKinBase::GetGoalFrameVector(), CRedundant::GetRandomConfiguration(), CPassive::GetRandomConfiguration(), IK_InvKinBase::GetRotVector(), Matrixmxn::GetRowVector(), PL_Sandros::InitailizeGraph(), PL_Astar::InvertStepSize(), CD_JointLimits::JointDisplacement(), PL_GraphBase::NormDistWeight(), Matrixmxn::operator *(), operator>>(), PL_Astar::SetDefaultStepSize(), Configuration::SetNumDOF(), and VectorN().

unsigned int VectorN::size  )  const [inline]
 

Definition at line 45 of file VectorN.h.

References Size().

Referenced by PA_Points::AppendPoint(), Dot(), Configuration::GlDraw(), operator *=(), operator[](), Configuration::SetJointVar(), and VectorN().

Here is the call graph for this function:

unsigned int VectorN::Size  )  const [inline]
 

Definition at line 44 of file VectorN.h.

References Length().

Referenced by Average(), PL_Neural::GenerateRandomConfig(), Configuration::GlDraw(), Ln(), LogVector(), Configuration::SetJointVar(), PL_Astar::SetStartConfig(), and size().

Here is the call graph for this function:


Member Data Documentation

std::vector< double > VectorN::elements [private]
 

Definition at line 70 of file VectorN.h.

Referenced by Append(), clear(), Dot(), Length(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator[](), push_back(), reserve(), resize(), SetLength(), VectorN(), and ~VectorN().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 22:06:06 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO