Skip to content
Snippets Groups Projects
Commit 344431d2 authored by Christian Engwer's avatar Christian Engwer
Browse files

[test]

update matrixtest to use the FieldTraits and not assume double as the return value of *_norm
parent 71c507a2
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,8 @@ void testMatrix(MatrixType& matrix, X& x, Y& y)
typedef typename MatrixType::field_type field_type;
typedef typename FieldTraits<field_type>::real_type real_type;
typedef typename MatrixType::block_type block_type;
typedef typename MatrixType::row_type row_type;
......@@ -241,7 +243,7 @@ void testMatrix(MatrixType& matrix, X& x, Y& y)
// Test the matrix norms
// //////////////////////////////////////////////////////////////
double frobenius_norm = matrix.frobenius_norm();
real_type frobenius_norm = matrix.frobenius_norm();
frobenius_norm += matrix.frobenius_norm2();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment