imate
C++/CUDA Reference
Loading...
Searching...
No Matches
c_linear_operator_base.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
17#include <cstddef> // NULL
18
19
20// =============
21// constructor 1
22// =============
23
26
28 num_rows(0),
29 num_columns(0),
30 eigenvalue_relation_known(0),
31 num_parameters(0)
32{
33}
34
35
36// =============
37// constructor 2
38// =============
39
52
54 const LongIndexType num_rows_,
55 const LongIndexType num_columns_):
56
57 // Initializer list
58 num_rows(num_rows_),
59 num_columns(num_columns_),
60 eigenvalue_relation_known(0),
61 num_parameters(0)
62{
63}
64
65
66// ==========
67// destructor
68// ==========
69
72
76
77
78// ============
79// get num rows
80// ============
81
85
90
91
92// ===============
93// get num columns
94// ===============
95
99
104
105
106// ==================
107// get num parameters
108// ==================
109
116
121
122
123// ============================
124// is eigenvalue relation known
125// ============================
126
132
virtual ~cLinearOperatorBase()
Destructor.
cLinearOperatorBase()
Default constructor.
IndexType get_num_parameters() const
Returns the number of parameters of the linear operator.
LongIndexType get_num_rows() const
Returns the number of rows of the matrix.
LongIndexType get_num_columns() const
Returns the number of columns of the matrix.
const LongIndexType num_rows
FlagType is_eigenvalue_relation_known() const
Returns a flag that determines whether a relation between the parameters of the operator and its eige...
const LongIndexType num_columns
int LongIndexType
Definition types.h:60
int FlagType
Definition types.h:68
int IndexType
Definition types.h:65