FiniteDifferenceMatrix
Defines a matrix that can be applied to a regular grid of values to take a finite difference
Properties and Methods
__init__(self, finite_difference_data, npts=None, mesh_spacing=None, only_core=False, only_center=False, mode='sparse', dtype='float64'):
finite_difference_data:FiniteDifferenceDataNo description…
npts:AnyNo description…
mesh_spacing:AnyNo description…
only_core:AnyNo description…
only_center:AnyNo description…
mode:AnyNo description…
@property
weights(self):
@property
order(self):
@property
npts(self):
@property
mesh_spacing(self):
@property
only_core(self):
@property
only_center(self):
@property
mode(self):
@property
dtype(self):
@property
matrix(self):
fd_matrix(self):
Builds a 1D finite difference matrix for a set of boundary weights, central weights, and num of points Will look like: b1 b2 b3 … w1 w2 w3 … 0 w1 w2 w3 … 0 0 w1 w2 w3 … … … … …. b3 b2 b1
:returns:np.ndarray | sp.csr_matrixfd_mat
Examples
FiniteDifferenceMatrix
Defines a matrix that can be applied to a regular grid of values to take a finite difference
Properties and Methods
__init__(self, finite_difference_data, npts=None, mesh_spacing=None, only_core=False, only_center=False, mode='sparse', dtype='float64'):
finite_difference_data:FiniteDifferenceDataNo description…
npts:AnyNo description…
mesh_spacing:AnyNo description…
only_core:AnyNo description…
only_center:AnyNo description…
mode:AnyNo description…
@property
weights(self):
@property
order(self):
@property
npts(self):
@property
mesh_spacing(self):
@property
only_core(self):
@property
only_center(self):
@property
mode(self):
@property
dtype(self):
@property
matrix(self):
fd_matrix(self):
Builds a 1D finite difference matrix for a set of boundary weights, central weights, and num of points Will look like: b1 b2 b3 … w1 w2 w3 … 0 w1 w2 w3 … 0 0 w1 w2 w3 … … … … …. b3 b2 b1
:returns:np.ndarray | sp.csr_matrixfd_mat
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