[mlpack-svn] r13084 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jun 19 21:23:06 EDT 2012
Author: rcurtin
Date: 2012-06-19 21:23:06 -0400 (Tue, 19 Jun 2012)
New Revision: 13084
Modified:
mlpack/trunk/src/mlpack/tests/nmf_test.cpp
Log:
Minor style changes.
Modified: mlpack/trunk/src/mlpack/tests/nmf_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/nmf_test.cpp 2012-06-20 00:28:18 UTC (rev 13083)
+++ mlpack/trunk/src/mlpack/tests/nmf_test.cpp 2012-06-20 01:23:06 UTC (rev 13084)
@@ -23,21 +23,18 @@
*/
BOOST_AUTO_TEST_CASE(NMFTest)
{
- mat V = randu<mat>(5,5);
+ mat v = randu<mat>(5, 5);
size_t r = 4;
- mat W,H;
+ mat w, h;
NMF<> nmf;
- nmf.Apply(V,W,H,r);
+ nmf.Apply(V, W, H, r);
- mat WH = W*H;
+ mat wh = w * h;
- V.print("V=");
- WH.print("WH=");
-
for (size_t row = 0; row < 5; row++)
for (size_t col = 0; col < 5; col++)
- BOOST_REQUIRE_CLOSE(V(row, col), WH(row, col), 5);
+ BOOST_REQUIRE_CLOSE(v(row, col), wh(row, col), 5);
}
More information about the mlpack-svn
mailing list