22 #ifndef fixed_row_vector_h
23 #define fixed_row_vector_h
25 #include "fixed_general_matrix.h"
45 typedef const AT* const_iterator;
47 typedef AT value_type;
96 template<
class Type,
class Row,
class Col>
111 #ifndef FMATVEC_NO_BOUNDS_CHECK
123 #ifndef FMATVEC_NO_BOUNDS_CHECK
130 iterator begin() {
return &ele[0][0]; }
131 iterator end() {
return &ele[0][N]; }
132 const_iterator begin()
const {
return &ele[0][0]; }
133 const_iterator end()
const {
return &ele[0][N]; }
134 const_iterator cbegin() const noexcept {
return &ele[0][0]; }
135 const_iterator cend() const noexcept {
return &ele[0][N]; }
145 const AT&
e(
int i)
const {
158 inline RowVector<Fixed<N>,AT>& init(Noinit,
const AT &a=0) {
return *
this; }
170 throw std::runtime_error(
"A fixed row vector cannot be resized.");
179 int inc()
const {
return 1;};
186 template <
int N,
class AT>
188 for(
int i=0; i<N; i++)
193 template <
int N,
class AT>
196 for(
int i=0; i<N; i++)
203 template <
int N,
class AT>
template <
class Col>
204 inline void RowVector<Fixed<N>,AT>::deepCopy(
const RowVector<Col,AT> &x) {
205 for(
int i=0; i<N; i++)
This is the basic matrix class for arbitrary matrices.
Definition: fmatvec.h:41
RowVector(const RowVector< Col, AT > &A)
Copy Constructor.
Definition: fixed_row_vector.h:89
int size() const
Size.
Definition: fixed_row_vector.h:164
RowVector(const Matrix< Type, Row, Col, AT > &A)
Copy Constructor.
Definition: fixed_row_vector.h:97
void resize(int n)
Definition: fixed_row_vector.h:168
int inc() const
Increment.
Definition: fixed_row_vector.h:179
Basic shape class for matrices.
Definition: types.h:100
AT & operator()(int i)
Element operator.
Definition: fixed_row_vector.h:110
const AT & operator()(int i) const
Element operator.
Definition: fixed_row_vector.h:122
const AT & e(int i) const
Element operator.
Definition: fixed_row_vector.h:145
RowVector(const char *str)
String Constructor.
Definition: fixed_row_vector.h:81