MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / check_dimension

Function check_dimension

src/tinympc/tiny_api.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11IOFormat TinyApiFmt(4, 0, ", ", "\n", "[", "]");
12
13static int check_dimension(std::string matrix_name, std::string rows_or_columns, int actual, int expected) {
14 if (actual != expected) {
15 std::cout << matrix_name << " has " << actual << " " << rows_or_columns << ". Expected " << expected << "." << std::endl;
16 return 1;
17 }
18 return 0;
19}
20
21int tiny_setup(TinySolver** solverp,
22 tinyMatrix Adyn, tinyMatrix Bdyn, tinyMatrix fdyn, tinyMatrix Q, tinyMatrix R,

Callers 7

tiny_setupFunction · 0.85
tiny_set_x_refFunction · 0.85
tiny_set_u_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected