comparison toolboxes/FullBNT-1.0.7/bnt/general/partition_matrix_vec_3.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function [A1, A2, B1, B2, C11, C12, C21, C22] = partition_matrix_vec_3(A, B, C, n1, n2, bs)
2
3 dom = myunion(n1, n2);
4 n1i = block(find_equiv_posns(n1, dom), bs(dom));
5 n2i = block(find_equiv_posns(n2, dom), bs(dom));
6
7
8 A1 = A(n1i);
9 A2 = A(n2i);
10 if isempty(B)
11 B1 = zeros(size(n1i, 2),size(B, 2));
12 B2 = zeros(size(n2i, 2),size(B, 2));
13 else
14 B1 = B(n1i, :);
15 B2 = B(n2i, :);
16 end
17
18
19 C11 = C(n1i, n1i);
20 C12 = C(n1i, n2i);
21 C21 = C(n2i, n1i);
22 C22 = C(n2i, n2i);