Template Class symmetric_matrix_fixed
Defined in File matrix.hpp
Inheritance Relationships
Base Type
public cif::matrix_expression< symmetric_matrix_fixed< F, M > >
(Template Class matrix_expression)
Class Documentation
-
template<typename F, size_t M>
class symmetric_matrix_fixed : public cif::matrix_expression<symmetric_matrix_fixed<F, M>> Storage class implementation of symmetric matrix_expression with compile time fixed size.
matrix is m x n, addressing i,j is 0 <= i < m and 0 <= j < n element m i,j is mapped to [i * n + j] and thus storage is row major
- Template Parameters
F – The type of the stored values
Public Functions
-
inline symmetric_matrix_fixed(value_type v = 0)
constructor with all elements set to value v
-
inline constexpr size_t dim_m() const
Return dimension m.
-
inline constexpr size_t dim_n() const
Return dimension n.
-
inline constexpr value_type operator()(size_t i, size_t j) const
Return the value of element [ i, j ]
-
inline constexpr value_type &operator()(size_t i, size_t j)
Return a reference to element [ i, j ]