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

Function ScaMat

XM/include/Dense/scalar.h:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17// function for dense tensor
18template <typename T>
19inline void ScaMat(DeviceDnTen<T>& mat, T scalar) {
20 // allocate memory for the result
21 ScaMatkernel<<<(mat.total_size + 1023) / 1024, 1024>>>(mat.vals, scalar, mat.total_size);
22
23}
24
25
26#endif // DENSE_SCALAR_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected