[mlpack-git] master: Armadillo 3.930+ supports inplace_trans() too. (c95c28d)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Tue Mar 3 11:31:51 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/4cb367cfb001988c8f99efca1a20e0610f611770...c95c28dd2ac90c4b1fdd5d658302d78f319738d2
>---------------------------------------------------------------
commit c95c28dd2ac90c4b1fdd5d658302d78f319738d2
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Mar 3 11:31:31 2015 -0500
Armadillo 3.930+ supports inplace_trans() too.
>---------------------------------------------------------------
c95c28dd2ac90c4b1fdd5d658302d78f319738d2
src/mlpack/core/data/load_impl.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/data/load_impl.hpp b/src/mlpack/core/data/load_impl.hpp
index 593f455..1a5921c 100644
--- a/src/mlpack/core/data/load_impl.hpp
+++ b/src/mlpack/core/data/load_impl.hpp
@@ -26,7 +26,8 @@ bool inline inplace_transpose(arma::Mat<eT>& X)
}
catch (std::bad_alloc& exception)
{
-#if ARMA_VERSION_MAJOR >= 4
+#if (ARMA_VERSION_MAJOR >= 4) || \
+ ((ARMA_VERSION_MAJOR == 3) && (ARMA_VERSION_MINOR >= 930))
arma::inplace_trans(X, "lowmem");
#else
Log::Fatal << "inplace_transpose is only available on "
More information about the mlpack-git
mailing list