[mlpack-git] master: Fix misspelling. Oops! (7199297)

gitdub at mlpack.org gitdub at mlpack.org
Tue Mar 22 15:06:21 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/501ffa545b9b80e93603388b651d829ae5631dff...7199297dd05a1a8dbc6525bdd7fcd13559596e6b

>---------------------------------------------------------------

commit 7199297dd05a1a8dbc6525bdd7fcd13559596e6b
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Mar 22 15:06:21 2016 -0400

    Fix misspelling.  Oops!


>---------------------------------------------------------------

7199297dd05a1a8dbc6525bdd7fcd13559596e6b
 src/mlpack/core/data/save_impl.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/data/save_impl.hpp b/src/mlpack/core/data/save_impl.hpp
index ef1f29d..9306b9e 100644
--- a/src/mlpack/core/data/save_impl.hpp
+++ b/src/mlpack/core/data/save_impl.hpp
@@ -135,8 +135,8 @@ bool Save(const std::string& filename,
 
   // Transpose the matrix.  If we are saving HDF5, Armadillo already transposes
   // this on save, so we don't need to.
-  if ((transpose && loadType != arma::hdf5_binary) ||
-      (!transpose && loadType == arma::hdf5_binary))
+  if ((transpose && saveType != arma::hdf5_binary) ||
+      (!transpose && saveType == arma::hdf5_binary))
   {
     arma::Mat<eT> tmp = trans(matrix);
 




More information about the mlpack-git mailing list