diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-03-03 11:02:52 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-03-03 11:02:52 +0000 |
commit | 46885d33bfd6cdcf3040923a4aef1b059684b854 (patch) | |
tree | 5187bd79214e7ac7dc2c0f5111910517add5f27f /test/basicstuff.cpp | |
parent | 255689231d4267d8a254fef5b59162d92c3cab4d (diff) |
Removed trailling spaces.
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r-- | test/basicstuff.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 69b9e3a6d..ec00f2b90 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -5,12 +5,12 @@ // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either +// License as published by the Free Software Foundation; either // version 3 of the License, or (at your option) any later version. // // Alternatively, you can redistribute it and/or // modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of +// published by the Free Software Foundation; either version 2 of // the License, or (at your option) any later version. // // Eigen is distributed in the hope that it will be useful, but WITHOUT ANY @@ -18,7 +18,7 @@ // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the // GNU General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public +// You should have received a copy of the GNU Lesser General Public // License and a copy of the GNU General Public License along with // Eigen. If not, see <http://www.gnu.org/licenses/>. @@ -30,10 +30,10 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) { typedef typename MatrixType::Scalar Scalar; typedef Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, 1> VectorType; - + int rows = m.rows(); int cols = m.cols(); - + // this test relies a lot on Random.h, and there's not much more that we can do // to test it, hence I consider that we will have tested Random.h MatrixType m1 = MatrixType::random(rows, cols), @@ -50,7 +50,7 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) int r = ei_random<int>(0, rows-1), c = ei_random<int>(0, cols-1); - + VERIFY_IS_APPROX( v1, v1); VERIFY_IS_NOT_APPROX( v1, 2*v1); VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1); @@ -63,7 +63,7 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) VERIFY_IS_MUCH_SMALLER_THAN( mzero, m1); VERIFY_IS_NOT_MUCH_SMALLER_THAN(m1, m1); VERIFY_IS_APPROX( mzero, m1-m1); - + // always test operator() on each read-only expression class, // in order to check const-qualifiers. // indeed, if an expression class (here Zero) is meant to be read-only, @@ -71,7 +71,7 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) // should return a const-qualified object so that it is the const-qualified // operator() that gets called, which in turn calls _read(). VERIFY_IS_MUCH_SMALLER_THAN(MatrixType::zero(rows,cols)(r,c), static_cast<Scalar>(1)); - + // now test copying a row-vector into a (column-)vector and conversely. square.col(r) = square.row(r).eval(); Matrix<Scalar, 1, MatrixType::Traits::RowsAtCompileTime> rv(rows); |