Skip to content

Commit d331301

Browse files
committed
More flexible trees for HSS as well.
1 parent 52033d8 commit d331301

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

@hss/private/hss_build_hss_tree.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
function H = hss_build_hss_tree(m, n, block_size, partitionm, partitionn)
2+
%HSS_BUILD_HSS_TREE
3+
%
4+
% Build an "empty" HSS matrix that can be used to specify the cluster. We
5+
% now support the particular case where the cluster is already given as a
6+
% HSS matrix, and in that case this function is a no-op.
7+
%
8+
9+
if isa(partitionm, 'hss')
10+
H = partitionm;
11+
return;
12+
end
13+
214
if isempty(partitionm)
315
H = build_hss_tree_rec(m, n, block_size);
416
else

0 commit comments

Comments
 (0)