Skip to content
ForCADDocumentation

kron_eye Function

public pure function kron_eye(A, ncoord) result(B)

Expand a scalar operator independently over ncoord components.

The result is the control-point-major representation of : B((i-1)*ncoord+r,(j-1)*ncoord+r)=A(i,j). Nonpositive ncoord returns B(0,0).

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), contiguous :: A(:,:)

Scalar operator [m,n].

integer, intent(in) :: ncoord

Number of independent components.

Return Value real(kind=rk), allocatable, (:,:)