ndarray_create Interface

public interface ndarray_create

Create a ndarray from a Fortran array. The ndarray will be a copy of the Fortran array.



Module Procedures

private function ndarray_create_int32_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int32), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int64_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int64), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real32_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real32), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real64_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real64), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real32_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real32), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real64_1d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real64), intent(in), dimension(:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int32_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int32), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int64_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int64), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real32_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real32), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real64_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real64), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real32_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real32), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real64_2d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real64), intent(in), dimension(:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int32_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int32), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int64_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int64), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real32_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real32), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real64_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real64), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real32_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real32), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real64_3d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real64), intent(in), dimension(:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int32_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int32), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_int64_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

integer(kind=int64), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real32_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real32), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_real64_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

real(kind=real64), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real32_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real32), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_complex_real64_4d(res, array) result(ierror)

Arguments

Type IntentOptional AttributesName
type(ndarray), intent(out) :: res

The resulting ndarray (in Fortran storage order).

complex(kind=real64), intent(in), dimension(:,:,:,:):: array

Create a new ndarray with a copy of the data given in 'array'

Return Value integer(kind=C_INT)

Error code, 0 on success