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
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.
Construct the Strang matrix of size n
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ilp), | intent(in) | :: | n |
Dimension of the matrix. |
Strang matrix of size n
.