MLPACK
1.0.10
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
methods
nystroem_method
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
32
class
OrderedSelection
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
Generated by
1.8.3.1