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
27
template
<
typename
DataType>
28
cLinearOperator<DataType>::cLinearOperator
():
29
parameters(NULL)
30
{
31
}
32
33
34
// ==========
35
// destructor
36
// ==========
37
40
41
template
<
typename
DataType>
42
cLinearOperator<DataType>::~cLinearOperator
()
43
{
44
}
45
46
47
// ==============
48
// set parameters
49
// ==============
50
57
58
template
<
typename
DataType>
59
void
cLinearOperator<DataType>::set_parameters
(DataType* parameters_)
60
{
61
this->parameters = parameters_;
62
}
63
64
65
// ===============================
66
// Explicit template instantiation
67
// ===============================
68
69
template
class
cLinearOperator<float>
;
70
template
class
cLinearOperator<double>
;
71
template
class
cLinearOperator<long double>
;
c_linear_operator.h
cLinearOperator
Base class for linear operators. This class serves as interface for all derived classes.
Definition
c_linear_operator.h:43
cLinearOperator::~cLinearOperator
virtual ~cLinearOperator()
Destructor.
Definition
c_linear_operator.cpp:42
cLinearOperator::cLinearOperator
cLinearOperator()
Default constructor.
Definition
c_linear_operator.cpp:28
cLinearOperator::set_parameters
void set_parameters(DataType *parameters_)
Sets the scalar parameter this->parameters. Parameter is initialized to NULL. However,...
Definition
c_linear_operator.cpp:59
imate
_c_linear_operator
c_linear_operator.cpp
Generated on Tue May 12 2026 22:54:38 for imate by
1.9.8