kron_eye Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 13 statements
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 | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | A(:,:) |
Scalar operator |
|
| integer, | intent(in) | :: | ncoord |
Number of independent components. |