mlpack  2.0.1
ordered_selection.hpp
Go to the documentation of this file.
1 
16 #ifndef __MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
17 #define __MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
18 
19 #include <mlpack/core.hpp>
20 
21 namespace mlpack {
22 namespace kernel {
23 
25 {
26  public:
34  const static arma::Col<size_t> Select(const arma::mat& /* unused */,
35  const size_t m)
36  {
37  // This generates [0 1 2 3 ... (m - 1)].
38  return arma::linspace<arma::Col<size_t> >(0, m - 1, m);
39  }
40 };
41 
42 } // namespace kernel
43 } // namespace mlpack
44 
45 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
static const arma::Col< size_t > Select(const arma::mat &, const size_t m)
Select the specified number of points in the dataset.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...