-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm_algorithms_utilities.cpp
43 lines (26 loc) · 1.2 KB
/
m_algorithms_utilities.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include "m_algorithms_utilities.h"
namespace Matrix {
namespace Operations {
namespace Utility {
std::string_view debug_message(const Matrix::Representation& l,
const Matrix::Representation& r) {
std::string error_msg = "Matrix A Columns not equal to Matrix B Rows: [" +
std::to_string(l.num_rows()) + "," +
std::to_string(r.num_rows()) + "," +
std::to_string(l.num_cols()) + "] X [" +
std::to_string(r.num_cols()) + "]";
return std::string_view{error_msg};
}
std::string_view debug_message_2(const Matrix::Representation& l,
const Matrix::Representation& r) {
std::string error_msg = "Matrix A size not equal to Matrix B: [" +
std::to_string(l.num_rows()) + "," +
std::to_string(l.num_cols()) + "] X [" +
std::to_string(r.num_rows()) + "," +
std::to_string(r.num_cols()) + "]";
return std::string_view{error_msg};
}
}
}
}