| 29 | |
| 30 | template <typename T> |
| 31 | inline 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 |
| 39 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected