From 9f5d4ed222b55f172a2ef2df85a64a2bda2cb433 Mon Sep 17 00:00:00 2001
From: Lukas Cejka <lukas.ostatek@gmail.com>
Date: Tue, 2 Apr 2019 13:30:34 +0200
Subject: [PATCH] Fixed vector product test.

---
 src/UnitTests/Matrices/SparseMatrixTest.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/UnitTests/Matrices/SparseMatrixTest.hpp b/src/UnitTests/Matrices/SparseMatrixTest.hpp
index a1dd2897c4..743a97cb35 100644
--- a/src/UnitTests/Matrices/SparseMatrixTest.hpp
+++ b/src/UnitTests/Matrices/SparseMatrixTest.hpp
@@ -707,12 +707,12 @@ void test_VectorProduct()
     using VectorType = TNL::Containers::Vector< RealType, DeviceType, IndexType >;
     
     VectorType inVector;
-    inVector.setSize( 4 );
+    inVector.setSize( m_cols );
     for( IndexType i = 0; i < inVector.getSize(); i++ )        
         inVector.setElement( i, 2 );
 
     VectorType outVector;  
-    outVector.setSize( 5 );
+    outVector.setSize( m_rows );
     for( IndexType j = 0; j < outVector.getSize(); j++ )
         outVector.setElement( j, 0 );
  
-- 
GitLab