Skip to content

Commit 8049edd

Browse files
Tests: add placeholder overload for complex matrices
1 parent 402743d commit 8049edd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

TESTING/cpp/tools.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,14 @@ void print_matrix_to_file(const char* filename, const Matrix& a) {
360360
}
361361
}
362362

363+
template<class Real, class Storage>
364+
void print_matrix_to_file(const char*, const ublas::matrix<std::complex<Real>, Storage>&)
365+
{
366+
assert(false);
367+
}
368+
369+
370+
363371
template<class Matrix>
364372
void print_machine_readable_matrix(const char* identifier, const Matrix& a) {
365373
using Number = typename Matrix::value_type;
@@ -374,6 +382,12 @@ void print_machine_readable_matrix(const char* identifier, const Matrix& a) {
374382
}
375383
}
376384

385+
template<class Real, class Storage>
386+
void print_machine_readable_matrix(const char*, const ublas::matrix<std::complex<Real>, Storage>&)
387+
{
388+
assert(false);
389+
}
390+
377391
}
378392
}
379393

0 commit comments

Comments
 (0)