File: sci2for.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (81 lines) | stat: -rw-r--r-- 1,758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.TH sci2for 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
sci2for - scilab function to Fortran routine conversion
.SH CALLING SEQUENCE
.nf
txt=sci2for(fun,nam,vtps [,lvtps])
.fi
.SH PARAMETERS
.TP 10
fun
: Scilab function
.TP
nam
: character string, the name of generated subroutine
.TP 10
vtps
: list
.TP 10
lvtps
: list
.TP 10
txt
: string, text of the subroutine Fortran code
.SH DESCRIPTION

The elements of the list \fVvtps\fR give the type and dimensions 
of the input variables of the calling sequence and \fVlvtps\fR
optionally gives the type and dimensions of the output variables. This
last parameter is usefull if type and/or dimension inference cannot be
able to determine the desired values.

These lists are  structured as described below:
.nf
vtps(i)=list(typ,row_dim,col_dim)
.fi
where :
.RS
.TP
typ
: is a character string giving the type of the variable :
.RS
.TP 
"0" 
: constant,integer vector or matrix
.TP
"1" 
: constant,double precision vector or matrix
.TP
"10"
: character string
.RE
.TP
row_dim 
: character string (row dimension)
.TP
col_dim 
: character string (column dimension)
.RE
.TP
txt
: Fortran code
.LP
Generated code may use routines of scilab libraries and some others
whose source code may be found in <SCIDIR>/util/sci2for.f
.SH REMARKS
This function is just a try. Only simple function may be
translated. Many function calls have not  yet Fortran equivalent, to add the
translation of a new function call you may define a scilab function.
whose name is f_<name of function>. see
<SCIDIR>/macros/sci2for/f_*.sci files for examples.
.LP
The following keywords :
.nf
 work,iwork,ierr
 iw*  iiw*      
 ilbN   (N integer)          
.fi
may not appear in the function code.
.SH SEE ALSO
function