forked from LLNL/libROM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StaticSVDBasisGenerator.C
36 lines (30 loc) · 1.07 KB
/
StaticSVDBasisGenerator.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
/******************************************************************************
*
* 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 static SVD algorithm and
// sampler. Implements interface of SVDBasisGenerator.
#include "StaticSVDBasisGenerator.h"
#include "StaticSVDSampler.h"
namespace CAROM {
StaticSVDBasisGenerator::StaticSVDBasisGenerator(
int dim,
int samples_per_time_interval,
const std::string& basis_file_name,
bool debug_algorithm,
Database::formats file_format) :
SVDBasisGenerator(basis_file_name, file_format)
{
d_svdsampler.reset(new StaticSVDSampler(dim,
samples_per_time_interval,
debug_algorithm));
}
StaticSVDBasisGenerator::~StaticSVDBasisGenerator()
{
}
}