MLPACK  1.0.11
ordered_selection.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
25 #define __MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
26 
27 #include <mlpack/core.hpp>
28 
29 namespace mlpack {
30 namespace kernel {
31 
33 {
34  public:
42  const static arma::Col<size_t> Select(const arma::mat& /* unused */,
43  const size_t m)
44  {
45  // This generates [0 1 2 3 ... (m - 1)].
46  return arma::linspace<arma::Col<size_t> >(0, m - 1, m);
47  }
48 };
49 
50 }; // namespace kernel
51 }; // namespace mlpack
52 
53 #endif