File: zeropen.sci

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (14 lines) | stat: -rw-r--r-- 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function [Z,U]=zeropen(Sl)
//Z = sE - F = zero pencil of Sl=[A,B,C,D]
// With U row compression of [B;D] i.e, U*[B;D]=[0;*]; 
//U*[-sI+A |B;   [ Z |0;      
//      C  |D] = [ * |*]     
// Copyright INRIA
s=poly(0,'s');
[A,B,C,D]=abcd(Sl);
BD=[B;D];
[n,m]=size(BD);
[U,rk]=rowcomp(BD);U=[U(rk+1:n,:);U(1:rk,:)];
W=U*([-s*eye()+A;C])
Z=W(1:n-rk,:);