FiniteDifferenceMatrix

Defines a matrix that can be applied to a regular grid of values to take a finite difference

 

__init__(self, finite_difference_data, npts=None, mesh_spacing=None, only_core=False, only_center=False, mode='sparse', dtype='float64'): 
  • finite_difference_data: FiniteDifferenceData
  • npts: Any
  • mesh_spacing: Any
  • only_core: Any
  • only_center: Any
  • mode: Any

 

@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_matrix

    f d _ m a t

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: FiniteDifferenceData

    No description…

  • npts: Any

    No description…

  • mesh_spacing: Any

    No description…

  • only_core: Any

    No description…

  • only_center: Any

    No description…

  • mode: Any

    No 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_matrix

    fd_mat

Examples


Edit Examples or Create New Examples
Edit Template or Create New Template
Edit Docstrings


Feedback

Examples

Templates

Documentation