imate
C++/CUDA Reference
Loading...
Searching...
No Matches
c_linear_operator.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3 * SPDX-License-Identifier: BSD-3-Clause
4 * SPDX-FileType: SOURCE
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the license found in the LICENSE.txt file in the root
8 * directory of this source tree.
9 */
10
11
12// =======
13// Headers
14// =======
15
16#include "./c_linear_operator.h"
17#include <cstddef> // NULL
18
19
20// =============
21// constructor 1
22// =============
23
26
27template <typename DataType>
29 parameters(NULL)
30{
31}
32
33
34// ==========
35// destructor
36// ==========
37
40
41template <typename DataType>
45
46
47// ==============
48// set parameters
49// ==============
50
57
58template <typename DataType>
60{
61 this->parameters = parameters_;
62}
63
64
65// ===============================
66// Explicit template instantiation
67// ===============================
68
69template class cLinearOperator<float>;
70template class cLinearOperator<double>;
71template class cLinearOperator<long double>;
Base class for linear operators. This class serves as interface for all derived classes.
virtual ~cLinearOperator()
Destructor.
cLinearOperator()
Default constructor.
void set_parameters(DataType *parameters_)
Sets the scalar parameter this->parameters. Parameter is initialized to NULL. However,...