RegularGridFiniteDifference
Defines a 1D finite difference over a regular grid
only_odd_orders: bool
__init__(self, order, stencil=None, accuracy=4, end_point_accuracy=2, only_odd_orders=None, **kw):
order:intthe order of the derivative to take
stencil:int | Nonethe number of stencil points to add
accuracy:int | Nonethe approximate accuracy to target with the method
end_point_accuracy:int | Nonethe extra number of stencil points to add to the end points
kw:Anyoptions passed through to the
FiniteDifferenceMatrix
@classmethod
finite_difference_data(cls, order, stencil, end_point_precision):
Builds a FiniteDifferenceData object from an order, stencil, and end_point_precision
order:Anystencil:Anyend_point_precision:Any:returns:_
@staticmethod
get_weights(m, s, n):
Extracts the weights for an evenly spaced grid
m:Anys:Anyn:Any:returns:_
Examples
RegularGridFiniteDifference
Defines a 1D finite difference over a regular grid
Properties and Methods
finite_difference_data: method
__init__(self, order, stencil=None, accuracy=4, end_point_accuracy=2, **kw):
order:intthe order of the derivative to take
stencil:int | Nonethe number of stencil points to add
accuracy:int | Nonethe approximate accuracy to target with the method
end_point_accuracy:int | Nonethe extra number of stencil points to add to the end points
kw:Anyoptions passed through to the
FiniteDifferenceMatrix
get_weights(m, s, n):
Extracts the weights for an evenly spaced grid
m:AnyNo description…
s:AnyNo description…
n:AnyNo description…
:returns:_No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings