forked from LLNL/libROM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IncrementalSVDBasisGenerator.C
64 lines (58 loc) · 2.43 KB
/
IncrementalSVDBasisGenerator.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************
*
* Copyright (c) 2013-2019, Lawrence Livermore National Security, LLC
* and other libROM project developers. See the top-level COPYRIGHT
* file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
*****************************************************************************/
// Description: The concrete wrapper class for a specific incremental SVD
// algorithm and sampler. Implements interface of
// SVDBasisGenerator.
#include "IncrementalSVDBasisGenerator.h"
#include "IncrementalSVDSampler.h"
namespace CAROM {
IncrementalSVDBasisGenerator::IncrementalSVDBasisGenerator(
int dim,
double linearity_tol,
bool skip_linearly_dependent,
bool fast_update,
int max_basis_dimension,
double initial_dt,
int samples_per_time_interval,
double sampling_tol,
double max_time_between_samples,
const std::string& basis_file_name,
bool save_state,
bool restore_state,
bool updateRightSV,
Database::formats file_format,
double min_sampling_time_step_scale,
double sampling_time_step_scale,
double max_sampling_time_step_scale,
bool debug_algorithm) :
SVDBasisGenerator(basis_file_name, file_format)
{
d_svdsampler.reset(new IncrementalSVDSampler(dim,
linearity_tol,
skip_linearly_dependent,
fast_update,
max_basis_dimension,
initial_dt,
samples_per_time_interval,
sampling_tol,
max_time_between_samples,
basis_file_name,
save_state,
restore_state,
updateRightSV,
min_sampling_time_step_scale,
sampling_time_step_scale,
max_sampling_time_step_scale,
debug_algorithm));
}
IncrementalSVDBasisGenerator::~IncrementalSVDBasisGenerator()
{
}
}