mlpack  2.0.1
random_basis.hpp
Go to the documentation of this file.
1 
14 #ifndef __MLPACK_CORE_MATH_RANDOM_BASIS_HPP
15 #define __MLPACK_CORE_MATH_RANDOM_BASIS_HPP
16 
17 #include <mlpack/prereqs.hpp>
18 
19 namespace mlpack {
20 namespace math {
21 
29 void RandomBasis(arma::mat& basis, const size_t d);
30 
31 } // namespace math
32 } // namespace mlpack
33 
34 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void RandomBasis(arma::mat &basis, const size_t d)
Create a random d-dimensional orthogonal basis, storing it in the given matrix.