| 259 | // T can be qcomp** or vector<vector<qcomp>> |
| 260 | template <typename T> |
| 261 | void setAndSyncSuperOpElems(SuperOp op, T matrix) { |
| 262 | |
| 263 | // overwrite the CPU matrix |
| 264 | cpu_copyMatrix(op.cpuElems, matrix, op.numRows); |
| 265 | |
| 266 | // sync CPU matrix to flat GPU array |
| 267 | syncSuperOp(op); |
| 268 | } |
| 269 | |
| 270 | |
| 271 | extern "C" void setSuperOp(SuperOp op, qcomp** matrix) { |
no test coverage detected