@ -36,6 +36,8 @@ namespace Implementation {
* @todo first col, then row (cache adjacency)
*/
template<size_t size, class T> class Matrix {
static_assert(size != 0, "Matrix cannot have zero elements");
friend class Matrix<size+1, T>; /* for ij() */
public:
@ -42,6 +42,8 @@ namespace Implementation {
/** @brief %Vector */
template<size_t size, class T> class Vector {
static_assert(size != 0, "Vector cannot have zero elements");
const static size_t Size = size; /**< @brief %Vector size */
typedef T Type; /**< @brief %Vector data type */