Scilab function

pvm_sci2f77 - Convert complex scalar into F77

Sequence d'appel

[res] = pvm_sci2f77(var)

Parametres

Description

pvm_sci2f77 converts all the complex of a scilab variable (array, list...) in the F77 representation. MAy be useful if an application is sendind data to a non scilab application (direcvtly to a C or F77 program for example).

Note that the parameter is passed by adress. It means that if the parameter is a variable, this variable will be overwritten with the result of conversion operation. On the other case, if the parameter is not a variable, the result will be returned in res.

For example:

-->a = [1+%i, 2+2*%i,3+3*%i]
 a  =
 
!   1. + i      2. + 2.i    3. + 3.i !
 
-->pvm_sci2f77(a)           
 
-->a
 a  =
 
!   1. + 2.i    1. + 3.i    2. + 3.i !
-->b = pvm_sci2f77([1+%i, 2+2*%i,3+3*%i])
 b  =
 
!   1. + 2.i    1. + 3.i    2. + 3.i !
   

Voir aussi