Strang Interface

public interface Strang

Constructor for generating the Strang matrix of size n. The matrix corresponds to the standard 3-point finite-difference approximation of the 1D Laplace operator with unit grid-spacing () and homogeneous Dirichlet boundary conditions. It reads

Syntax

  • Construct a Strang matrix of size 100.
   integer, parameter :: n = 100
   type(Strang) :: S
   S = Strang(n)

Note

Only double precision is currently supported for this matrix type.


Functions

private pure module function initialize(n) result(A)

Construct the Strang matrix of size n.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n

Dimension of the matrix.

Return Value type(Strang)

Strang matrix of size n.