rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
IReducedDataNode.m
1 classdef IReducedDataNode < DataTree.ILeafNode & IReducedData
2  % %Interface for leaf nodes of the DataTree in Greedy.User.ReducedData
3  % objects.
4  %
5  % These objects should be automatically generated out of a detailed data
6  % strucuture by the .Greedy.User.ReducedData constructor.
7 
8  methods
9  function subset_reduced_data = extract_reduced_data_subset(reduced_data, rmodel)
10  % function subset_reduced_data = extract_reduced_data_subset(reduced_data, rmodel)
11  % @copybrief .IReducedData.extract_reduced_data_subset()
12  %
13  % @copydetails .IReducedData.extract_reduced_data_subset()
14  %
15  % Parameters:
16  % rmodel: of type .Greedy.User.IReducedModel
17  if needs_subset_copy(reduced_data, rmodel)
18  subset_reduced_data = rmodel.bg_descr.reduced_data_constructor(rmodel, reduced_data);
19  else
20  subset_reduced_data = reduced_data;
21  end
22  end
23  end
24 
25 % methods
26 % function rdn = RbReducedData(rmodel)
27 % end
28 % end
29 
30  methods (Abstract)
31 
32  % function yesno = needs_subset_copy(this, rmodel);
33  % returns whether the reduced data needs to be copied when a subset is
34  % demanded by a call of extract_reduced_data_subset().
35  %
36  % Parameters:
37  % rmodel: of type ::GreedyUser::IReducedModel
38  %
39  % Return values:
40  % yesno: boolean flag indicating whether it is necessary to copy the
41  % object.
42  yesno = needs_subset_copy(this, rmodel);
43 
44  % conds = get_conds(this);
45  %
46  end
47 
48 end
Interface for a leaf node of a data tree.
Definition: ILeafNode.m:18
a default reduced data implementation which stores a data tree object copying the structure of a Gree...
Definition: ReducedData.m:19
Definition: leaf.m:17
Interface classes to be implemented by the Greedy.Algorithm user.
Customizable implementation of an abstract greedy algorithm.
Definition: DuneRBLeafNode.m:1
interface specialization for a reduced model that can be used with the Greedy algorithm for basis gen...
Definition: IReducedModel.m:19
Interface class for the generation and storage of offline matrices and vectors as described in Module...
Definition: IReducedData.m:17