units
Use physical dimensions at compile-time or run-time.
|
Model of a matrix of quantities. More...
#include <number.hpp>
Public Member Functions | |
mat () | |
template<typename... X> | |
constexpr | mat (X...xs) |
Initialize from list. More... | |
template<typename OT > | |
constexpr | mat (mat< OT, NR, NC > const &m) |
Copy from same-size matrix of other element-type OT. More... | |
constexpr auto | col (size_t off) const |
Reference to immutable column. More... | |
constexpr auto | col (size_t off) |
Reference to mutable column. More... | |
constexpr auto | row (size_t off) const |
Reference to immutable row. More... | |
constexpr auto | row (size_t off) |
Reference to mutable row. More... | |
Public Attributes | |
array< T, NR *NC > | a |
Array in which quantities are stored. More... | |
Friends | |
template<typename OT , size_t ONR, size_t ONC> | |
struct | mat |
Allow access to every other type of matrix. More... | |
Model of a matrix of quantities.
Definition at line 23 of file number.hpp.
|
inline |
Definition at line 91 of file example1.cpp.
|
inline |
Initialize from list.
Definition at line 94 of file example1.cpp.
|
inline |
Copy from same-size matrix of other element-type OT.
Definition at line 98 of file example1.cpp.
|
inline |
Reference to immutable column.
Definition at line 101 of file example1.cpp.
|
inline |
Reference to mutable column.
Definition at line 106 of file example1.cpp.
|
inline |
Reference to immutable row.
Definition at line 112 of file example1.cpp.
|
inline |
Reference to mutable row.
Definition at line 117 of file example1.cpp.
|
friend |
Allow access to every other type of matrix.
Definition at line 89 of file example1.cpp.
array<T, NR * NC> vnix::mv::mat< T, NR, NC >::a |
Array in which quantities are stored.
Definition at line 86 of file example1.cpp.