Index

C++ Code Documentation

template <class Number, uint N> math::VectorX

Derived from: base::ArrayX

File: BASE/math/VectorX.H

Fixed-length base::vector class. Length N and entries in class Number.

public:
  • inline VectorX();
    void constructor
  • inline VectorX( VectorX<Number,N> const &a );
    copy constructor
  • inline VectorX( Number const *a );
    copy constructor
  • inline ~VectorX();
    destructor
  • inline VectorX<Number,N> &operator=( VectorX<Number,N> const &a );
    assignment operators
  • inline void set( Number );
    set to A
  • inline void neg();
    negation: *this = - *this
  • inline void neg( VectorX<Number,N> const &a );
    negation: *this = - a
  • inline void add( VectorX<Number,N> const &a );
    *this += a
  • inline void add( VectorX<Number,N> const &a, VectorX<Number,N> const &b );
    *this = a + b
  • inline void sub( VectorX<Number,N> const &a );
    *this -= a
  • inline void sub( VectorX<Number,N> const &a, VectorX<Number,N> const &b );
    *this = a - b
  • inline void mul( Number const &a );
    *this *= a
  • inline void mul( Number const &a, VectorX<Number,N> const &b );
    *this = a * b
  • inline void mul( VectorX<Number,N> const &a, Number const &b );
    *this = a * b
  • inline void mul( matrixX<Number, N> const &a, VectorX<Number,N> const &b );
    *this = a * b
  • inline void mul( VectorX<Number,N> const &a, matrixX<Number, N> const &b );
    *this = a * b
  • inline void mul_add( VectorX<Number,N> const &a, Number const &b, VectorX<Number, N> const &c );
    *this = a + b * c
  • inline void mul_add( Number const &a, VectorX<Number, N> const &b );
    *this += a * b
  • inline void div( Number const &a );
    *this /= a
  • inline void div( VectorX<Number,N> const &a, Number const &b );
    *this = a / b
  • inline Number dot( VectorX<Number,N> const &a ) const;
    return dot_product( *this, a )
  • inline Number norm() const;
  • inline Number abs() const;
  • inline void operator+=( VectorX<Number,N> const &a );
    operator versions
  • inline void operator-=( VectorX<Number,N> const &a );
  • inline void operator*=( Number const &a );
  • inline void operator/=( Number const &a );
  • inline VectorX<Number,N> operator+() const;
    inefficient versions
  • inline VectorX<Number,N> operator-() const;
  • inline VectorX<Number,N> operator+( VectorX<Number,N> const & ) const;
  • inline VectorX<Number,N> operator-( VectorX<Number,N> const & ) const;
  • friend VectorX<Number,N> operator* NULL_TMPL_ARGS ( Number const &, VectorX<Number,N> const & );
  • friend VectorX<Number,N> operator* NULL_TMPL_ARGS ( VectorX<Number,N> const &, Number const & );
  • inline VectorX<Number,N> operator*( Number const & ) const;
  • inline VectorX<Number,N> operator/( Number const & ) const;
  • friend std::ostream &operator<< NULL_TMPL_ARGS ( std::ostream &o, VectorX<Number,N> const &a );
protected:
private:


template <class Number, uint N> math::VectorX GANG