|
Index
C++ Code Documentation
template <class A> math::Vector
Derived from: base::Array
File: BASE/math/Vector.H
Primative vector class
Uses allocate() and deallocate() (from Array)
Entries in class A.
public:
- inline Vector();
 | void constructor | |
- inline Vector(Vector const &a);
 | copy constructor | |
- inline Vector(A const *a);
 | constructor | |
- virtual inline ~Vector();
 | destructor | |
- inline Vector & operator=(Vector const &a);
 | assignment operators | |
- inline Vector & operator=(A const *a);
- inline A & operator[](unsigned n);
 | return reference to nth entry | |
- inline A const & operator[](unsigned n) const;
 | return reference to nth entry | |
- inline void set(A const &a);
 | set all entries of *this to a | |
- inline void neg();
 | negation: *this = - *this | |
- inline void neg(Vector const &a);
 | negation: *this = - a | |
- inline void operator+=(Vector const &a);
 | *this += a | |
- inline void add(Vector const &a, Vector const &b);
 | *this = a + b | |
- inline void operator-=(Vector const &a);
 | *this -= a | |
- inline void sub(Vector const &a, Vector const &b);
 | *this = a - b | |
- inline void operator*=(A const &a);
 | *this *= a | |
- friend Vector<A> operator* NULL_TMPL_ARGS ( A const &, Vector<A> const & );
- inline void mul(A const &a, Vector const &b);
 | *this = a * b | |
- inline void mul(Vector const &a, A const &b);
 | *this = a * b | |
- inline void mul(matrixA<A> const &a, Vector const &b);
 | *this = a * b | |
- inline void mul(Vector const &a, matrixA<A> const &b);
 | *this = a * b | |
- inline void operator /=(A const &a);
 | *this /= a | |
- inline void div(Vector const &a, A const &b);
 | *this = a / b | |
- inline A dot(Vector const &a) const;
 | return dot_product(*this, a) | |
- inline A norm() const;
- friend std::ostream & operator<< NULL_TMPL_ARGS (std::ostream &o, Vector const &a);
 | write a to stream o | |
protected:
private:
|