MCPcopy Create free account
hub / github.com/VladyslavUsenko/basalt / interpGrad

Method interpGrad

test/src/test_patch.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17 template <typename Scalar>
18 Eigen::Matrix<Scalar, 3, 1> interpGrad(
19 const Eigen::Matrix<Scalar, 2, 1>& p) const {
20 return Eigen::Matrix<Scalar, 3, 1>(sin(p[0] / 100.0 + p[1] / 20.0),
21 cos(p[0] / 100.0 + p[1] / 20.0) / 100.0,
22 cos(p[0] / 100.0 + p[1] / 20.0) / 20.0);
23 }
24
25 template <typename Derived>
26 BASALT_HOST_DEVICE inline bool InBounds(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected