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
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
load.hpp:31
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:42
core.hpp
mlpack::kernel::OrderedSelection
Definition:
ordered_selection.hpp:32
Generated by
1.8.8