~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to examples/link-examples/README

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This directory contains demo examples of dynamic links.
 
2
Dynamically linked fortran routines are:
 
3
ext1f.f, ext2f.f etc
 
4
Dynamically linked C routines are:
 
5
ext1c.c, ext2c.c etc
 
6
 
 
7
make /tmp/ext1f.o creates an object file in the /tmp directory
 
8
 
 
9
To run a demo, execute Scilab HERE in this directory and enter at Scilab 
 
10
prompt:
 
11
-->exec('ext1f.sce')
 
12
 
 
13
make clean to clean old stuff
 
14
 
 
15
Additional examples are given in "misc" directory
 
16
 
 
17
        Fort 
 
18
 
 
19
 ext1c.c ext1f.f  :  Simple example, double and integer arguments.
 
20
 ext2c.c ext2f.f  :   '' '' 
 
21
 ext3c.c ext3f.f  :  String argument  
 
22
 ext4c.c ext4f.f  :  ReadString, creadchain : Reading a string in Scilab stack  
 
23
 ext5c.c ext5f.f  :  ReadMatrix, creadmat : Reading a matrix in Scilab stack  
 
24
 ext6c.c ext6f.f  :  ''  
 
25
 ext7c.c ext7f.f  :  WriteMatrix, WriteString
 
26
                      cwritemat,cwritechain : Writing a matrix or a string in Scilab stack   
 
27
 ext8c.c ext8f.f  :  GetMatrixPtr,  cmatptr
 
28
                  : Getting a pointer to Scilab matrix. data is read from this
 
29
                     pointer and changed   
 
30
 ext13c.c ext13f.f: link to function which share data 
 
31
 ext14c.c ext14f.f: Short argument list form and C or Fortran wrapper      
 
32
 
 
33
 
 
34
        Ode 
 
35
 
 
36
 ext9c.c        : ode reference 
 
37
 ext10c.c       : param transmited using list('xxx',param)
 
38
 ext11c.c       : using ReadMatrix to get param 
 
39
 ext12c.c       : using GetMatrixptr to get param