MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / DiagAdd

Function DiagAdd

XM/include/Dense/trace.h:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template <typename T>
49inline void DiagAdd(DeviceDnTen<T>& mat, DeviceDnTen<T>& diag){
50 // allocate memory for the result
51 DiagAddKernel<<<(mat.dimensions[0] + 1023) / 1024, 1024>>>(mat.vals, diag.vals, mat.dimensions[0]);
52
53}
54
55#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected