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

« back to all changes in this revision

Viewing changes to macros/m2sci/killfuns.sci

  • 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
function fptr=killfuns()
 
2
// Copyright INRIA
 
3
funs=['list','tlist','exp','cond','xgrid','type','format',..
 
4
        'qr','lu','maxi','mini','max','min','size','degree']
 
5
 
 
6
fptr=[]
 
7
kfuns=[]
 
8
for f=funs
 
9
  fp=funptr(f)
 
10
  if fp<>0 then
 
11
    fptr=[fptr,funptr(f)]
 
12
    clearfun(f)
 
13
    kfuns=[kfuns,f]
 
14
  end
 
15
end
 
16
fptr=list(kfuns,fptr)
 
17
 
 
18
 
 
19
function restorefuns(fptr)
 
20
[funs,fptr]=fptr(1:2)
 
21
for k=1:size(funs,'*')
 
22
  newfun(funs(k),fptr(k))
 
23
end