Low-overhead vector if length is known at compile time. More...
Public Member Functions | |
| double | get (index_t i) const |
| Gets a value to the i'th element of this vector (convenient when you have a pointer to a vector). | |
| double | get (index_t i) const |
| Gets a value to the i'th element of this vector (convenient when you have a pointer to a vector). | |
| index_t | length () const |
| The number of elements in this vector. | |
| index_t | length () const |
| The number of elements in this vector. | |
| double & | operator[] (index_t i) |
| Gets a mutable reference to the i'th element of this vector. | |
| double | operator[] (index_t i) const |
| Gets the i'th element of this vector. | |
| double & | operator[] (index_t i) |
| Gets a mutable reference to the i'th element of this vector. | |
| double | operator[] (index_t i) const |
| Gets the i'th element of this vector. | |
| const double * | ptr () const |
| A pointer to the C-style array containing the elements of this vector. | |
| double * | ptr () |
| A pointer to the C-style array containing the elements of this vector. | |
| const double * | ptr () const |
| A pointer to the C-style array containing the elements of this vector. | |
| double * | ptr () |
| A pointer to the C-style array containing the elements of this vector. | |
Low-overhead vector if length is known at compile time.
Definition at line 1076 of file matrix.h.
| double SmallVector< t_length >::get | ( | index_t | i | ) | const [inline] |
Gets a value to the i'th element of this vector (convenient when you have a pointer to a vector).
This is identical to the array subscript operator, except for the following reason:
Reimplemented from GenVector< double >.
| double SmallVector< t_length >::get | ( | index_t | i | ) | const [inline] |
Gets a value to the i'th element of this vector (convenient when you have a pointer to a vector).
This is identical to the array subscript operator, except for the following reason:
Reimplemented from GenVector< double >.
| index_t SmallVector< t_length >::length | ( | ) | const [inline] |
The number of elements in this vector.
Reimplemented from GenVector< double >.
| index_t SmallVector< t_length >::length | ( | ) | const [inline] |
The number of elements in this vector.
Reimplemented from GenVector< double >.
| double& SmallVector< t_length >::operator[] | ( | index_t | i | ) | [inline] |
Gets a mutable reference to the i'th element of this vector.
Reimplemented from GenVector< double >.
| double SmallVector< t_length >::operator[] | ( | index_t | i | ) | const [inline] |
Gets the i'th element of this vector.
Reimplemented from GenVector< double >.
| double& SmallVector< t_length >::operator[] | ( | index_t | i | ) | [inline] |
Gets a mutable reference to the i'th element of this vector.
Reimplemented from GenVector< double >.
| double SmallVector< t_length >::operator[] | ( | index_t | i | ) | const [inline] |
Gets the i'th element of this vector.
Reimplemented from GenVector< double >.
| const double* SmallVector< t_length >::ptr | ( | ) | const [inline] |
A pointer to the C-style array containing the elements of this vector.
Reimplemented from GenVector< double >.
| double* SmallVector< t_length >::ptr | ( | ) | [inline] |
A pointer to the C-style array containing the elements of this vector.
Reimplemented from GenVector< double >.
| const double* SmallVector< t_length >::ptr | ( | ) | const [inline] |
A pointer to the C-style array containing the elements of this vector.
Reimplemented from GenVector< double >.
| double* SmallVector< t_length >::ptr | ( | ) | [inline] |
A pointer to the C-style array containing the elements of this vector.
Reimplemented from GenVector< double >.
1.6.3