| 33 | |
| 34 | |
| 35 | void demo_getInlineCompMatr() { |
| 36 | |
| 37 | // inline literal; identical to getCompMatr1() for consistencty with C API |
| 38 | CompMatr1 a = getInlineCompMatr1( {{1,2_i},{3_i+.1,-4}} ); |
| 39 | reportCompMatr1(a); |
| 40 | |
| 41 | // we must specify all elements (only necessary in C++), else runtime validation triggered |
| 42 | CompMatr2 b = getInlineCompMatr2({ |
| 43 | {1, 2, 3, 4}, |
| 44 | {5, 6, 8, 8}, |
| 45 | {5, 7, 6, 1}, |
| 46 | {4, 4, 3, 3} |
| 47 | }); |
| 48 | reportCompMatr2(b); |
| 49 | } |
| 50 | |
| 51 | |
| 52 | void demo_getCompMatr() { |
no test coverage detected