diff --git a/dlib/test/cca.cpp b/dlib/test/cca.cpp index 49b7a08d2..3d7e69698 100644 --- a/dlib/test/cca.cpp +++ b/dlib/test/cca.cpp @@ -30,11 +30,12 @@ namespace return temp; } - std::vector > mat_to_sparse ( - const matrix& A + template + std::vector > mat_to_sparse ( + const matrix& A ) { - std::vector > temp(A.nr()); + std::vector > temp(A.nr()); for (long r = 0; r < A.nr(); ++r) { for (long c = 0; c < A.nc(); ++c) @@ -47,8 +48,9 @@ namespace // ---------------------------------------------------------------------------------------- - matrix rm_zeros ( - const matrix& m + template + matrix rm_zeros ( + const matrix_exp& m ) { // Do this to avoid trying to correlate super small numbers that are really just