template
class
Vector<class>
: public Array1D<class>
(Return to index)
Vector.
A templated representation for vectors.
This class implements the arithmetic operations.
Type: |
Instantiable |
Superclasses: |
public Array1D<class> |
Include file: |
./Algebra/Vector.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
-
Vector
()
;
-
Vector
(int)
;
-
Vector
(int,const T&)
;
-
Vector
(const Array1D<T>&)
;
-
Vector
(const Vector<T>&)
;
-
~Vector
()
;
-
Vector<T>& operator=
(const Vector<T>&)
;
-
Vector<T> operator-
()const
;
-
Vector<T>& operator*=
(const T&)
;
-
Vector<T>& operator/=
(const T&)
;
-
Vector<T>& operator+=
(const Vector<T>&)
;
-
Vector<T>& operator-=
(const Vector<T>&)
;
-
typedef T value_type
;
-
typedef T* iterator
;
-
typedef const T* const_iterator
;
-
Array1D<T>& operator=
(const Array1D<T>&)
;
-
T& operator()
(int)
;
-
const T& operator()
(int)const
;
-
T& operator[]
(int)
;
-
const T& operator[]
(int)const
;
-
iterator begin
()
;
-
iterator end
()
;
-
const_iterator begin
()const
;
-
const_iterator end
()const
;
-
int size
()const
;
-
void resize
(int)
;
Documentation:
- Public members:
-
Vector
()
;
- Default constructor.
Constructs vector of zero length.
-
Vector
(int)
;
- Constructor.
Reserve n members and leave them undefined.
-
Vector
(int,const T&)
;
- Constructor.
Reserve n members and set them to t.
-
Vector
(const Array1D<T>&)
;
- Conversion.
-
Vector<T>& operator*=
(const T&)
;
- Multiply by scalar and assign.
-
Vector<T>& operator+=
(const Vector<T>&)
;
- Add vector and assign.
-
Vector<T> operator-
()const
;
- Change sign of vector.
-
Vector<T>& operator-=
(const Vector<T>&)
;
- Subtract vector and assign.
-
Vector<T>& operator/=
(const T&)
;
- Divide by scalar and assign.
Documentation generated by fci on Mon Feb 7 11:41:56 2000