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

« back to all changes in this revision

Viewing changes to macros/percent/%lss_norm.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 y=%lss_norm(A,flag)
 
2
  if argn(2)==1 then flag=2,end
 
3
  if flag==2 then
 
4
    y=h2norm(A)
 
5
  elseif flag==%inf|flag=='inf' then
 
6
    y=h_norm(A)
 
7
  else
 
8
    error('flag must be 2 or inf.')
 
9
  end
 
10
endfunction