22 #ifndef fixed_row_vector_h
23 #define fixed_row_vector_h
25 #include "fixed_general_matrix.h"
44 typedef AT AtomicType;
93 template<
class Type,
class Row,
class Col>
108 #ifndef FMATVEC_NO_BOUNDS_CHECK
120 #ifndef FMATVEC_NO_BOUNDS_CHECK
135 const AT&
e(
int i)
const {
148 inline RowVector<Fixed<N>,AT>& init(Noinit,
const AT &a=0) {
return *
this; }
160 throw std::runtime_error(
"A fixed row vector cannot be resized.");
169 int inc()
const {
return 1;};
176 template <
int N,
class AT>
178 for(
int i=0; i<N; i++)
183 template <
int N,
class AT>
186 for(
int i=0; i<N; i++)
193 template <
int N,
class AT>
template <
class Col>
194 inline void RowVector<Fixed<N>,AT>::deepCopy(
const RowVector<Col,AT> &x) {
195 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:86
int size() const
Size.
Definition: fixed_row_vector.h:154
RowVector(const Matrix< Type, Row, Col, AT > &A)
Copy Constructor.
Definition: fixed_row_vector.h:94
void resize(int n)
Definition: fixed_row_vector.h:158
int inc() const
Increment.
Definition: fixed_row_vector.h:169
Basic shape class for matrices.
Definition: types.h:100
AT & operator()(int i)
Element operator.
Definition: fixed_row_vector.h:107
const AT & operator()(int i) const
Element operator.
Definition: fixed_row_vector.h:119
const AT & e(int i) const
Element operator.
Definition: fixed_row_vector.h:135
RowVector(const char *str)
String Constructor.
Definition: fixed_row_vector.h:78