This class handles standard mathematical vector operations.
More...
#include <carma/services/Vector.h>
|
std::vector< type > | data_ |
|
unsigned | nEl_ |
| Store the length. More...
|
|
template<typename T>
class carma::services::Vector< T >
This class handles standard mathematical vector operations.
Definition at line 21 of file Location.h.
Constructor.
......................................................................
Constructor
Definition at line 207 of file Vector.h.
Constructor for class types without default constructor.
......................................................................
Constructor for class types without default constructors
Definition at line 217 of file Vector.h.
Constructor.
......................................................................
Constructor with three arguments
Definition at line 193 of file Vector.h.
Copy constructor.
......................................................................
Copy constructor
Definition at line 227 of file Vector.h.
Destructor.
......................................................................
Assignment
template<class type> void Vector<type>::operator=(const Vector<type>& vec) { cout << "Inside Vector assignment operator" << endl; cout << "vec.data_.size() = " << vec.data_.size() << endl;
data_.resize(vec.data_.size());
for(unsigned i=0; i < vec.data_.size(); i++)
data_[i] = vec.data_[i];
cout << "data_.size() = " << data_.size() << endl; }....................................................................... Destructor
Definition at line 253 of file Vector.h.
Private constructor with no arguments.
......................................................................
Constructor
Definition at line 184 of file Vector.h.
Assignment void operator=(const Vector<type>& vec);.
Cross product of two Vectors.
Definition at line 270 of file Vector.h.
Get the magnitude of a vector.
Definition at line 259 of file Vector.h.
Vector multiplication, aka dot product.
......................................................................
Multiply two vectors together
Definition at line 345 of file Vector.h.
......................................................................
Multiply a vector by a constant
Definition at line 425 of file Vector.h.
Vector addition.
......................................................................
Add two vectors together
Definition at line 370 of file Vector.h.
......................................................................
Add a constant to a vector
Definition at line 467 of file Vector.h.
......................................................................
Subtraction
Subtract two vectors
Definition at line 398 of file Vector.h.
......................................................................
Subtract a constant to a vector
Subtract a constant from a vector
Definition at line 488 of file Vector.h.
......................................................................
Divide a vector by a constant
Definition at line 446 of file Vector.h.
Define an operator for accessing elements of the vector.
......................................................................
Define an operator for accessing elements of the vector
Definition at line 318 of file Vector.h.
Private resize operator.
Definition at line 156 of file Vector.h.
Query the size of the vector.
Definition at line 71 of file Vector.h.
template<typename T>
std::ostream& carma::services::operator<< |
( |
std::ostream & |
os, |
|
|
const Vector< type > & |
vec |
|
) |
| |
|
friend |
Declare a vector printing method.
template<typename T>
std::ostringstream& carma::services::operator<< |
( |
std::ostringstream & |
os, |
|
|
const Vector< type > & |
vec |
|
) |
| |
|
friend |
Declare a vector printing method.
Store the length.
Definition at line 170 of file Vector.h.
The documentation for this class was generated from the following files: