File: sci2for.cat

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 (64 lines) | stat: -rw-r--r-- 1,880 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
sci2for           Scilab Group           Scilab Function            sci2for
NAME
   sci2for - scilab function to Fortran routine conversion
  
CALLING SEQUENCE
 txt=sci2for(fun,nam,vtps [,lvtps])
PARAMETERS
 fun        : Scilab function
            
 nam        : character string, the name of generated subroutine
            
 vtps       : list
            
 lvtps      : list
            
 txt        : string, text of the subroutine Fortran code
            
DESCRIPTION
    The elements of the list vtps give the type and dimensions  of the input
  variables of the calling sequence and lvtps 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:
  
 vtps(i)=list(typ,row_dim,col_dim)
   where :
  
 typ  : is a character string giving the type of the variable :
      
     "0"  : constant,integer vector or matrix
          
     "1"  : constant,double precision vector or matrix
          
     "10" : character string
          
 row_dim
       : character string (row dimension)
      
 col_dim
       : character string (column dimension)
      
  txt
  : Fortran code
  
   Generated code may use routines of scilab libraries and some others whose
  source code may be found in <SCIDIR>/util/sci2for.f
  
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.
  
   The following keywords :
  
  work,iwork,ierr
  iw*  iiw*      
  ilbN   (N integer)          
   may not appear in the function code.
  
SEE ALSO
   function