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

Function trace

XM/include/Dense/trace.h:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename T>
31inline void trace(DeviceDnTen<T>& mat, T* result){
32
33 // allocate memory for the result
34 traceKernel<<<(mat.dimensions[0] + 1023) / 1024, 1024>>>(mat.vals, result, mat.dimensions[0]);
35
36}
37
38// diagnal add a matrix
39template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected