MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / _createInlineCompMatr

Function _createInlineCompMatr

quest/include/matrices.h:1254–1259  ·  view source on GitHub ↗

@private

Source from the content-addressed store, hash-verified

1252
1253 /// @private
1254 static inline CompMatr _createInlineCompMatr(int numQb, qcomp elems[1<<numQb][1<<numQb]) {
1255 _validateParamsToCreateInlineCompMatr(numQb);
1256 CompMatr out = createCompMatr(numQb); // malloc failures will report 'createCompMatr', rather than 'inline' version. Alas!
1257 _setCompMatrFromArr(out, elems);
1258 return out;
1259 }
1260
1261 /// @private
1262 static inline DiagMatr _createInlineDiagMatr(int numQb, qcomp elems[1<<numQb]) {

Callers

nothing calls this directly

Calls 3

createCompMatrFunction · 0.85
_setCompMatrFromArrFunction · 0.85

Tested by

no test coverage detected