public interface diag
Creates a diagonal array or extract the diagonal elements of an array
(Specification)
Functions
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=dp),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
complex(kind=dp), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=dp),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
complex(kind=dp), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=dp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
complex(kind=dp), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=dp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
complex(kind=dp), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=sp),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
complex(kind=sp), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=sp),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
complex(kind=sp), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=sp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
complex(kind=sp), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
complex(kind=sp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
complex(kind=sp), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int16),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
integer(kind=int16), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int16),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int16), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int16),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
integer(kind=int16), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int16),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int16), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int32),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
integer(kind=int32), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int32),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int32), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int32),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
integer(kind=int32), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int32),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int32), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int64),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
integer(kind=int64), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int64),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int64), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int64),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
integer(kind=int64), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int64),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int64), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int8),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
integer(kind=int8), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int8),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int8), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int8),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
integer(kind=int8), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int8),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
integer(kind=int8), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=dp),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
real(kind=dp), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=dp),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
real(kind=dp), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=dp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
real(kind=dp), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=dp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
real(kind=dp), (minval(shape(A))-abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=sp),
|
intent(in) |
|
|
:: |
v(:) |
|
Return Value
real(kind=sp), (size(v),size(v))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=sp),
|
intent(in) |
|
|
:: |
v(:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
real(kind=sp), (size(v)+abs(k),size(v)+abs(k))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=sp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
Return Value
real(kind=sp), (minval(shape(A)))
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=sp),
|
intent(in) |
|
|
:: |
A(:,:) |
|
integer,
|
intent(in) |
|
|
:: |
k |
|
Return Value
real(kind=sp), (minval(shape(A))-abs(k))