source: distools/pe_mtimes.m @ 41

Last change on this file since 41 was 41, checked in by bduin, 12 years ago
File size: 388 bytes
Line 
1%PE_MTIMES Pseudo-Euclidean matrix product
2%
3%  C = PE_MTIMES(A,B)
4%
5% A should be a PE dataset. Its PE signature SIG is retrieved,
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
11isdataset(a);
12sig = getsig(a);
13J = diag([ones(1,sig(1))  -ones(1,sig(2))]);
14c = a*J*b;
15 
16 
Note: See TracBrowser for help on using the repository browser.