source: distools/pe_mtimes.m @ 70

Last change on this file since 70 was 41, checked in by bduin, 12 years ago
File size: 388 bytes
RevLine 
[10]1%PE_MTIMES Pseudo-Euclidean matrix product
2%
3%  C = PE_MTIMES(A,B)
4%
[41]5% A should be a PE dataset. Its PE signature SIG is retrieved,
[10]6% C = A*J*B, where J is a diagonal matrix with 1's, followed by -1's.
7% J = diag ([ONES(SIG(1),1);  -ONES(SIG(2),1)])
8
9function c = pe_mtimes(a,b)
10
[41]11isdataset(a);
12sig = getsig(a);
13J = diag([ones(1,sig(1))  -ones(1,sig(2))]);
14c = a*J*b;
[10]15 
16 
Note: See TracBrowser for help on using the repository browser.