ndarray_create_empty Interface

public interface ndarray_create_empty

Creates an empty ndarray of given shape. Array contains uninitialised values.



Module Procedures

private function ndarray_create_empty_aint32(array, a_shape, dtype, order) result(ierror)

Arguments

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

The resulting ndarray.

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

Shape of ndarray to create.

character(kind=C_CHAR,len=*), intent(in), optional :: dtype

numpy.dtype of ndarray (default: 'float')

character(kind=C_CHAR), intent(in), optional :: order

Storage order: 'F' (Fortran) or 'C' (default: 'F')

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_empty_aint64(array, a_shape, dtype, order) result(ierror)

Arguments

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

The resulting ndarray.

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

Shape of ndarray to create.

character(kind=C_CHAR,len=*), intent(in), optional :: dtype

numpy.dtype of ndarray (default: 'float')

character(kind=C_CHAR), intent(in), optional :: order

Storage order: 'F' (Fortran) or 'C' (default: 'F')

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_empty_int32(array, length, dtype, order) result(ierror)

Arguments

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

The resulting one dimensional ndarray.

integer(kind=int32), intent(in) :: length

Number of elements in ndarray

character(kind=C_CHAR,len=*), intent(in), optional :: dtype

numpy.dtype of ndarray (default: 'float')

character(kind=C_CHAR), intent(in), optional :: order

Storage order: 'F' (Fortran) or 'C' (default: 'F'). In case of 1D array not relevant.

Return Value integer(kind=C_INT)

Error code, 0 on success

private function ndarray_create_empty_int64(array, length, dtype, order) result(ierror)

Arguments

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

The resulting one dimensional ndarray.

integer(kind=int64), intent(in) :: length

Number of elements in ndarray

character(kind=C_CHAR,len=*), intent(in), optional :: dtype

numpy.dtype of ndarray (default: 'float')

character(kind=C_CHAR), intent(in), optional :: order

Storage order: 'F' (Fortran) or 'C' (default: 'F'). In case of 1D array not relevant.

Return Value integer(kind=C_INT)

Error code, 0 on success