mxCopyPtrToComplex16 (Fortran)

Copy COMPLEX*16 values from pointer array to Fortran array

Fortran Syntax

mxCopyPtrToComplex16(pr, pi, y, n)
mwPointer pr, pi
complex*16 y(n)
mwSize n

Arguments

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

Description

mxCopyPtrToComplex16 copies n COMPLEX*16 values from the MATLAB arrays pointed to by pr and pi into the Fortran COMPLEX*16 array y. This subroutine is essential for use with Fortran compilers that do not support the %VAL construct in order to set up standard Fortran arrays for passing as arguments to the computation routine of a MEX-file.

See Also

mxCopyComplex16ToPtr, mxCreateNumericArray, mxCreateNumericMatrix, mxGetData, mxGetImagData

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS