@@ -102,29 +102,6 @@ template <class T, std::size_t N, std::size_t M>
102
102
template <class T , std::size_t N, std::size_t M>
103
103
[[nodiscard]] constexpr matrix<T, N, M> div (T a, const matrix<T, N, M>& b) noexcept ;
104
104
105
- /* *
106
- * Extracts the Ith column from a matrix.
107
- *
108
- * @tparam I Index of a column.
109
- * @tparam T Element type.
110
- * @tparam N Number of columns.
111
- * @tparam M Number of rows.
112
- *
113
- * @param m Matrix from which to extract a column.
114
- *
115
- * @return Reference to the Ith column of @p m.
116
- */
117
- // / @{
118
- template <std::size_t I, class T , std::size_t N, std::size_t M>
119
- [[nodiscard]] constexpr typename matrix<T, N, M>::column_type& get (matrix<T, N, M>& m) noexcept ;
120
- template <std::size_t I, class T , std::size_t N, std::size_t M>
121
- [[nodiscard]] constexpr typename matrix<T, N, M>::column_type&& get(matrix<T, N, M>&& m) noexcept ;
122
- template <std::size_t I, class T , std::size_t N, std::size_t M>
123
- [[nodiscard]] constexpr const typename matrix<T, N, M>::column_type& get (const matrix<T, N, M>& m) noexcept ;
124
- template <std::size_t I, class T , std::size_t N, std::size_t M>
125
- [[nodiscard]] constexpr const typename matrix<T, N, M>::column_type&& get(const matrix<T, N, M>&& m) noexcept ;
126
- // / @}
127
-
128
105
/* *
129
106
* Calculates the inverse of a square matrix.
130
107
*
@@ -445,34 +422,6 @@ constexpr matrix<T, N, M> div(T a, const matrix<T, N, M>& b) noexcept
445
422
return div (a, b, std::make_index_sequence<N>{});
446
423
}
447
424
448
- template <std::size_t I, class T , std::size_t N, std::size_t M>
449
- inline constexpr typename matrix<T, N, M>::column_type& get (matrix<T, N, M>& m) noexcept
450
- {
451
- static_assert (I < N);
452
- return m.columns [I];
453
- }
454
-
455
- template <std::size_t I, class T , std::size_t N, std::size_t M>
456
- inline constexpr typename matrix<T, N, M>::column_type&& get(matrix<T, N, M>&& m) noexcept
457
- {
458
- static_assert (I < N);
459
- return std::move (m.columns [I]);
460
- }
461
-
462
- template <std::size_t I, class T , std::size_t N, std::size_t M>
463
- inline constexpr const typename matrix<T, N, M>::column_type& get (const matrix<T, N, M>& m) noexcept
464
- {
465
- static_assert (I < N);
466
- return m.columns [I];
467
- }
468
-
469
- template <std::size_t I, class T , std::size_t N, std::size_t M>
470
- inline constexpr const typename matrix<T, N, M>::column_type&& get(const matrix<T, N, M>&& m) noexcept
471
- {
472
- static_assert (I < N);
473
- return std::move (m.columns [I]);
474
- }
475
-
476
425
// / @private
477
426
template <class T >
478
427
constexpr matrix<T, 2 , 2 > inverse (const matrix<T, 2 , 2 >& m) noexcept
0 commit comments