38 static_assert(std::is_base_of<IMatrix, T>::value,
"IMatrix is not a valid base");
39 return static_cast<T&
>(M);
48 static_assert(std::is_base_of<IMatrix, T>::value,
"IMatrix is not a valid base");
49 return static_cast<const T&
>(M);
57 static_assert(std::is_base_of<IVector, T>::value,
"IVector is not a valid base");
58 return static_cast<T&
>(M);
67 static_assert(std::is_base_of<IVector, T>::value,
"IVector is not a valid base");
68 return static_cast<const T&
>(M);
Interface for all matrices.
Interface for all vectors.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --