MLPACK  1.0.8
lin_alg.hpp
Go to the documentation of this file.
1 
22 #ifndef __MLPACK_CORE_MATH_LIN_ALG_HPP
23 #define __MLPACK_CORE_MATH_LIN_ALG_HPP
24 
25 #include <mlpack/core.hpp>
26 
30 namespace mlpack {
31 namespace math {
32 
38 void VectorPower(arma::vec& vec, double power);
39 
47 void Center(const arma::mat& x, arma::mat& xCentered);
48 
54 void WhitenUsingSVD(const arma::mat& x,
55  arma::mat& xWhitened,
56  arma::mat& whiteningMatrix);
57 
62 void WhitenUsingEig(const arma::mat& x,
63  arma::mat& xWhitened,
64  arma::mat& whiteningMatrix);
65 
69 void RandVector(arma::vec& v);
70 
75 void Orthogonalize(const arma::mat& x, arma::mat& W);
76 
81 void Orthogonalize(arma::mat& x);
82 
90 void RemoveRows(const arma::mat& input,
91  const std::vector<size_t>& rowsToRemove,
92  arma::mat& output);
93 
94 }; // namespace math
95 }; // namespace mlpack
96 
97 #endif // __MLPACK_CORE_MATH_LIN_ALG_HPP