| 258 | |
| 259 | |
| 260 | void demo_setInlineDiagMatr() { |
| 261 | |
| 262 | // inline literal; identical to setDiagMatr() for consistencty with C API |
| 263 | DiagMatr a = createDiagMatr(1); |
| 264 | setInlineDiagMatr(a, 1, {333, 444}); |
| 265 | reportDiagMatr(a); |
| 266 | destroyDiagMatr(a); |
| 267 | |
| 268 | // we must specify all elements (only necessary in C++) |
| 269 | DiagMatr b = createDiagMatr(3); |
| 270 | setInlineDiagMatr(b, 3, {4,5,4,5,6,7,6,7_i}); |
| 271 | reportDiagMatr(b); |
| 272 | destroyDiagMatr(b); |
| 273 | } |
| 274 | |
| 275 | |
| 276 |
no test coverage detected