inline random_basis

Signed-off-by: Omar Shrit <omar@shrit.me>
This commit is contained in:
Omar Shrit
2021-11-13 19:15:58 +00:00
parent 08948122f5
commit 3e165bfc3e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -24,9 +24,12 @@ namespace math {
* @param basis Matrix to store basis in.
* @param d Desired number of dimensions in the basis.
*/
void RandomBasis(arma::mat& basis, const size_t d);
inline void RandomBasis(arma::mat& basis, const size_t d);
} // namespace math
} // namespace mlpack
//! Include the implementation file
#include "random_basis_impl.hpp"
#endif
@@ -16,7 +16,7 @@ using namespace arma;
namespace mlpack {
namespace math {
void RandomBasis(mat& basis, const size_t d)
inline void RandomBasis(mat& basis, const size_t d)
{
while (true)
{