MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / is_squared

Function is_squared

include/CoolProp/numerics/MatrixMath.h:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57template <class T>
58bool is_squared(std::vector<std::vector<T>> const& in) {
59 std::size_t cols = max_cols(in);
60 if (cols != num_rows(in)) {
61 return false;
62 } else {
63 for (std::size_t i = 0; i < in.size(); i++) {
64 if (cols != in[i].size()) {
65 return false;
66 }
67 }
68 }
69 return true;
70};
71
72template <class T>
73std::size_t num_cols(std::vector<T> const& in) {

Callers 2

num_colsFunction · 0.85
invertFunction · 0.85

Calls 3

max_colsFunction · 0.85
num_rowsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected