~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_files/sci_full.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function [tree]=sci_full(tree)
 
2
// Copyright INRIA
 
3
// M2SCI function
 
4
// Conversion function for Matlab full()
 
5
// Input: tree = Matlab funcall tree
 
6
// Ouput: tree = Scilab equivalent for tree
 
7
// Emulation function: mtlb_full()
 
8
// V.C.
 
9
 
 
10
S = getrhs(tree)
 
11
 
 
12
if S.vtype==String then
 
13
  tree.name="mtlb_full"
 
14
  tree.lhs(1).dims=S.dims
 
15
  tree.lhs(1).type=S.type
 
16
elseif S.vtype==Boolean then
 
17
  S = convert2double(S)
 
18
  tree.rhs=Rhs(S)
 
19
  tree.lhs(1).dims=S.dims
 
20
  tree.lhs(1).type=Type(Boolean,Real)
 
21
elseif S.vtype==Double then
 
22
  tree.lhs(1).dims=S.dims
 
23
  tree.lhs(1).type=S.type
 
24
elseif S.vtype==Sparse then
 
25
  tree.lhs(1).dims=S.dims
 
26
  tree.lhs(1).type=Type(Double,S.property)
 
27
else
 
28
  tree.name="mtlb_full"
 
29
  tree.lhs(1).dims=S.dims
 
30
  tree.lhs(1).type=S.type
 
31
end
 
32
 
 
33
endfunction