mlpack
1.0.12
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
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
24
class
OrderedSelection
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
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
load.hpp:23
mlpack::kernel::OrderedSelection::Select
static const arma::Col< size_t > Select(const arma::mat &, const size_t m)
Select the specified number of points in the dataset.
Definition:
ordered_selection.hpp:34
core.hpp
mlpack::kernel::OrderedSelection
Definition:
ordered_selection.hpp:24
Generated by
1.8.9.1