Skip to content

Commit 52033d8

Browse files
committed
Support HODLR objects in specifying cluster trees.
1 parent d549afa commit 52033d8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

@hodlr/private/hodlr_build_hodlr_tree.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
function H = hodlr_build_hodlr_tree(m, n, block_size, partitionm, partitionn)
2+
%HODLR_BUILD_HODLR_TREE
3+
%
4+
% Build an "empty" HODLR 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+
% HODLR matrix, and in that case this function is a no-op.
7+
%
8+
9+
if isa(partitionm, 'hodlr')
10+
H = partitionm;
11+
return;
12+
end
13+
214
if isempty(partitionm)
315
H = build_hodlr_tree_rec(m, n, block_size);
416
else

0 commit comments

Comments
 (0)