ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This module contains procedures and generic interfaces relevant to copying (diagonal or upper/lower triangular) subsets of matrices of arbitrary intrinsic types and kinds from one matrix of arbitrary shape and packing format to another matrix of arbitrary shape and packing format.
More...
Data Types | |
interface | getMatCopy |
Generate and return a copy of a desired subset of the input source matrix of arbitrary shape (:) or (:,:) to the target subset of the output destin matrix of arbitrary shape (:) or (:,:) . More... | |
interface | setMatCopy |
Copy a desired subset of the input source matrix of arbitrary shape (:) or (:,:) to the target subset of the output destin matrix of arbitrary shape (:) or (:,:) . More... | |
Variables | |
character(*, SK), parameter | MODULE_NAME = "@pm_matrixCopy" |
This module contains procedures and generic interfaces relevant to copying (diagonal or upper/lower triangular) subsets of matrices of arbitrary intrinsic types and kinds from one matrix of arbitrary shape and packing format to another matrix of arbitrary shape and packing format.
The generic interfaces of this module are a shortcut for copying subsets of matrices and paste to another existing one.
While writing the loop is simple, such patterns occur frequently.
These generic interfaces offer a clean fast solution for copying subsets of matrices and pasting them to other matrices with arbitrary packing formats.
The following guidelines describe the various existing methods within the ParaMonte library for copying subsets of matrices.
SLACPY
, DLACPY
, CLACPY
, ZLACPY
, CTPTTF
, DTPTTF
, STPTTF
, ZTPTTF
, CTRTTF
, DTRTTF
, STRTTF
, ZTRTTF
, CTFTTP
, DTFTTP
, STFTTP
, ZTFTTP,
, CTFTTR
, DTFTTR
, STFTTR
, ZTFTTR
.character
, integer
, logical
, as well as complex
and real
matrices are implemented as part of this module.
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.
character(*, SK), parameter pm_matrixCopy::MODULE_NAME = "@pm_matrixCopy" |
Definition at line 130 of file pm_matrixCopy.F90.