ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Copy the strided elements of an input scalar string or vector of arbitrary intrinsic type, kind, and size to the strided elements of another scalar string or vector of the same type, kind, and compatible size.
More...
Copy the strided elements of an input scalar string or vector of arbitrary intrinsic type, kind, and size to the strided elements of another scalar string or vector of the same type, kind, and compatible size.
The functionality of this interface is readily available from the standard Fortran array syntax for all Fortran intrinsic type arrays.
However, it is impossible to perform elemental copy action for scalar strings.
This interface provides a universal generic approach to performing copy all vectors of intrinsic type and and kind as well as scalar strings, allowing seamless generic programming.
[in] | From | : The input
contiguous array of rank 1 of either,
to . |
[in,out] | To | : The input/output scalar or contiguous array of the same type, kind, rank, and compatible size as the input From . On output, the specific requested elements of To will be replaced by the requested corresponding values from From . The remaining elements of To are returned as is. |
[in] | incf | : The input scalar of type integer of default kind IK, containing the stride of the input vector From .
|
[in] | inct | : The input scalar of type integer of default kind IK, containing the stride of the input/output vector To .The copy action will occur at every other incf elements in To .
|
Possible calling interfaces ⛓
incf /= 0_IK .or. inct /= 0_IK
must hold for the corresponding input arguments.(size(From) - 1_IK) / abs(incf) == (size(To) - 1_IK) / abs(inct)
must hold for the corresponding input arguments (when both incf
and inct
are non-zero).CHECK_ENABLED=1
.pure
procedure(s) documented herein become impure
when the ParaMonte library is compiled with preprocessor macro CHECK_ENABLED=1
.pure
in release
build and impure
in debug
and testing
builds.SCOPY
, DCOPY
, CCOPY
, and ZCOPY
.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 592 of file pm_arrayCopy.F90.