mxCopyPtrToComplex16 (Fortran) - COMPLEX*16 values from pointer array to Fortran

        array - MATLAB ([original](https://www.mathworks.com/help/matlab/apiref/mxcopyptrtocomplex16.html)) ([raw](?raw))

Main Content

COMPLEX*16 values from pointer array to Fortran array

Fortran Syntax

Interleaved complex API

#include "fintrf.h" integer4 mxCopyPtrToComplex16(pd, y, n) mwPointer pd complex16 y(n) mwSize n

Separate complex API

#include "fintrf.h" subroutine mxCopyPtrToComplex16(pr, pi, y, n) mwPointer pr, pi complex*16 y(n) mwSize n

Input Arguments

pd

Pointer to a complex double-precision MATLABĀ® array

pr

Pointer to the real data of a double-precision MATLAB array

pi

Pointer to the imaginary data of a double-precision MATLAB array

y

COMPLEX*16 Fortran array

n

Number of elements to copy

Output Arguments

status

Function status, returned as integer*4 when using the interleaved complex API.

Description

mxCopyPtrToComplex16 copies n COMPLEX*16 values from the specified MATLAB arrays into the Fortran COMPLEX*16 arrayy. The MATLAB arrays are pointed to by:

Sets up standard Fortran arrays for passing as arguments to or from the computation routine of a MEX-file. Use this subroutine with Fortran compilers that do not support the %VAL construct.

Version History

Introduced before R2006a