38 static_assert(std::is_base_of<IMatrix, T>::value,
"IMatrix is not a valid base");
39 auto* m =
dynamic_cast<T*
>(&M);
41 throw FatalErrorException(
"Bad matrix cast");
51 static_assert(std::is_base_of<IMatrix, T>::value,
"IMatrix is not a valid base");
52 auto* m =
dynamic_cast<const T* const
>(&M);
54 throw FatalErrorException(
"Bad matrix cast");
63 static_assert(std::is_base_of<IVector, T>::value,
"IVector is not a valid base");
64 auto* m =
dynamic_cast<T*
>(&M);
66 throw FatalErrorException(
"Bad vector cast");
76 static_assert(std::is_base_of<IVector, T>::value,
"IVector is not a valid base");
77 auto* m =
dynamic_cast<const T* const
>(&M);
79 throw FatalErrorException(
"Bad vector cast");
Interface for all matrices.
Interface for all vectors.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --