@@ -159,50 +159,6 @@ struct ForwardTypeHelper<ElemType, true>
159159};
160160#endif
161161
162- // Proxy for `arma::shuffle` or `coot::shuffle` based on the data type.
163- template <typename MatType>
164- typename std::enable_if<
165- IsCootType<MatType>::value, typename ForwardType<MatType>::uvec>::type
166- sort_index (const MatType& input)
167- {
168- #ifdef USE_COOT
169- return coot::sort_index (input);
170- #else
171- return arma::sort_index (input);
172- #endif
173- }
174-
175- // Armadillo proxy for `arma::sort_index` if `MatType` is not a Coot type.
176- template <typename MatType>
177- typename std::enable_if<
178- !IsCootType<MatType>::value, typename ForwardType<MatType>::uvec>::type
179- sort_index (const MatType& input)
180- {
181- return arma::sort_index (input);
182- }
183-
184- // Proxy for `arma::linspace` or `coot::linspace` based on the data type.
185- template <typename OutputType>
186- inline static typename std::enable_if<
187- !arma::is_arma_type<OutputType>::value, OutputType>::type
188- linspace (const double start, const double end, const size_t num = 100u )
189- {
190- #ifdef USE_COOT
191- return coot::linspace<OutputType>(start, end, num);
192- #else
193- return arma::linspace<OutputType>(start, end, num);
194- #endif
195- }
196-
197- // Armadillo proxy for `arma::linspace` if `OutputType` is an Armadillo type.
198- template <typename OutputType>
199- inline static typename std::enable_if<
200- arma::is_arma_type<OutputType>::value, OutputType>::type
201- linspace (const double start, const double end, const size_t num = 100u )
202- {
203- return arma::linspace<OutputType>(start, end, num);
204- }
205-
206162} // namespace ens
207163
208164#endif
0 commit comments