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

« back to all changes in this revision

Viewing changes to macros/percent/%r_tril.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 d=%r_tril(a,k)
 
2
// Copyright INRIA
 
3
[lhs,rhs]=argn(0)
 
4
if rhs==1 then k=0,end
 
5
d=syslin(a('dt'),tril(a('num'),k),tril(a('den'),k)+triu(ones(a('den')),k+1))
 
6
endfunction