Creates a ndarray of ones.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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') |
Error code, 0 on success
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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') |
Error code, 0 on success
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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. |
Error code, 0 on success
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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. |
Error code, 0 on success