MCPcopy Create free account
hub / github.com/bgrimstad/splinter / eval

Method eval

python/splinter/function.py:20–26  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

18 self._num_variables = None
19
20 def eval(self, x):
21 x = self._transform_input(x)
22
23 num_points = len(x) // self._num_variables
24 res = splinter._call(splinter._get_handle().splinter_bspline_eval_row_major, self._handle, (c_double * len(x))(*x), len(x))
25
26 return c_array_to_list(res, num_points)
27
28 def eval_jacobian(self, x):
29 x = self._transform_input(x)

Callers 3

bspline.pyFile · 0.45

Calls 3

_transform_inputMethod · 0.95
c_array_to_listFunction · 0.85
_get_handleMethod · 0.80

Tested by

no test coverage detected