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

« back to all changes in this revision

Viewing changes to macros/elem/isempty.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 answ=isempty(m)
 
2
 
 
3
// Copyright INRIA . 1998  1 
 
4
select type(m),
 
5
case 10
 
6
  answ =  max(length(m)) == 0;
 
7
case 15
 
8
  answ = %t;
 
9
  for i=1:size(m),
 
10
    answ=(answ & isempty(m(i)));
 
11
  end;
 
12
else
 
13
  answ = size(m,'*')==0;
 
14
end;
 
15
endfunction