|
|
|
|
@ -74,7 +74,18 @@ template<std::size_t size, class T> class Matrix: public RectangularMatrix<size,
|
|
|
|
|
*/ |
|
|
|
|
template<class ...U> inline constexpr /*implicit*/ Matrix(const Vector<size, T>& first, const U&... next): RectangularMatrix<size, size, T>(first, next...) {} |
|
|
|
|
|
|
|
|
|
/** @copydoc RectangularMatrix::RectangularMatrix(const RectangularMatrix<cols, rows, U>&) */ |
|
|
|
|
/**
|
|
|
|
|
* @brief Construct matrix from another of different type |
|
|
|
|
* |
|
|
|
|
* Performs only default casting on the values, no rounding or |
|
|
|
|
* anything else. Example usage: |
|
|
|
|
* @code |
|
|
|
|
* Matrix<2, float> floatingPoint({1.3f, 2.7f}, |
|
|
|
|
* {-15.0f, 7.0f}); |
|
|
|
|
* Matrix<2, std::int8_t> integral(floatingPoint); |
|
|
|
|
* // integral == {{1, 2}, {-15, 7}}
|
|
|
|
|
* @endcode |
|
|
|
|
*/ |
|
|
|
|
template<class U> inline constexpr explicit Matrix(const RectangularMatrix<size, size, U>& other): RectangularMatrix<size, size, T>(other) {} |
|
|
|
|
|
|
|
|
|
/** @brief Copy constructor */ |
|
|
|
|
|