MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / InverseKernelWithDet

Function InverseKernelWithDet

extensions/include/cuMat/src/DenseLinAlgOps.h:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 typename Scalar = typename internal::traits<MatIn>::Scalar,
501 int InFlags = internal::traits<MatIn>::Flags, int OutFlags = internal::traits<MatOut>::Flags>
502 __global__ void InverseKernelWithDet(dim3 virtual_size, const MatIn expr, MatOut matOut, DetOut detOut) //TODO
503 {
504 typedef DeviceMatrix<Scalar, Dims, InFlags> Min;
505 typedef DeviceMatrix<Scalar, Dims, OutFlags> Mout;
506 CUMAT_KERNEL_1D_LOOP(index, virtual_size)
507 Min in = loadMat<Dims, MatIn, Scalar>(expr, index);
508 Scalar det;
509 Mout out = InverseFunctor<Scalar, Dims, Min, Mout >::run(in, det);
510 storeMat(matOut, out, index);
511 detOut.setRawCoeff(index, det);
512 CUMAT_KERNEL_1D_LOOP_END
513 }
514 }
515}
516

Callers

nothing calls this directly

Calls 3

storeMatFunction · 0.85
runFunction · 0.50
setRawCoeffMethod · 0.45

Tested by

no test coverage detected