source:
distools/pe_mtimes.m
@
100
Last change on this file since 100 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 | |
9 | function c = pe_mtimes(a,b) |
10 | |
11 | isdataset(a); |
12 | sig = getsig(a); |
13 | J = diag([ones(1,sig(1)) -ones(1,sig(2))]); |
14 | c = a*J*b; |
15 | |
16 |
Note: See TracBrowser
for help on using the repository browser.