FiniteDifferenceDerivative
Provides derivatives for a function (scalar or vector valued).
Can be indexed into or the entire tensor of derivatives may be requested.
The potential for optimization undoubtedly exists, but the idea is to provide as simple an interface as possible.
Robustification needs to be done, but is currently used in CoordinateSystem.jacobian to good effect.
Properties and Methods
__init__(self, f, function_shape=(0, 0), **fd_opts):
f:FunctionSpec | callablethe function we would like to take derivatives of
function_shape:Iterable[Iterable[int] | int] | Nonethe shape of the function we’d like to take the derivatives of
fd_opts:Anythe options to pass to the finite difference function
__call__(self, *args, **opts):
derivatives(self, center, displacement_function=None, prep=None, lazy=None, mesh_spacing=None, **fd_opts):
Generates a differencer object that can be used to get derivs however your little heart desires
center:np.ndarraythe center point around which to generate differences
displacement_function:AnyNo description…
mesh_spacing:AnyNo description…
prep:AnyNo description…
fd_opts:AnyNo description…
:returns:_No description…
Examples
FiniteDifferenceDerivative
Provides derivatives for a function (scalar or vector valued).
Can be indexed into or the entire tensor of derivatives may be requested.
The potential for optimization undoubtedly exists, but the idea is to provide as simple an interface as possible.
Robustification needs to be done, but is currently used in CoordinateSystem.jacobian to good effect.
Properties and Methods
__init__(self, f, function_shape=(0, 0), **fd_opts):
f:FunctionSpec | callablethe function we would like to take derivatives of
function_shape:Iterable[Iterable[int] | int] | Nonethe shape of the function we’d like to take the derivatives of
fd_opts:Anythe options to pass to the finite difference function
__call__(self, *args, **opts):
derivatives(self, center, displacement_function=None, prep=None, lazy=None, mesh_spacing=None, **fd_opts):
Generates a differencer object that can be used to get derivs however your little heart desires
center:np.ndarraythe center point around which to generate differences
displacement_function:AnyNo description…
mesh_spacing:AnyNo description…
prep:AnyNo description…
fd_opts:AnyNo description…
:returns:_No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings