imate
C++/CUDA Reference
c_matrix.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_matrix.h"
17 #include <cassert> // assert
18 
19 
20 // =============
21 // constructor 1
22 // =============
23 
26 
27 template <typename DataType>
29 {
30 }
31 
32 
33 // ==========
34 // destructor
35 // ==========
36 
37 template <typename DataType>
39 {
40 }
41 
42 
43 // ==============
44 // get eigenvalue
45 // ==============
46 
62 
63 template <typename DataType>
65  const DataType* known_parameters,
66  const DataType known_eigenvalue,
67  const DataType* inquiry_parameters) const
68 {
69  assert((false) && "This function should no be called within this class");
70 
71  // Mark unused variables to avoid compiler warnings (-Wno-unused-parameter)
72  (void) known_parameters;
73  (void) known_eigenvalue;
74  (void) inquiry_parameters;
75 
76  return 0;
77 }
78 
79 
80 // ===============================
81 // Explicit template instantiation
82 // ===============================
83 
84 template class cMatrix<float>;
85 template class cMatrix<double>;
86 template class cMatrix<long double>;
Base class for constant matrices.
Definition: c_matrix.h:41
virtual ~cMatrix()
Definition: c_matrix.cpp:38
cMatrix()
Default constructor.
Definition: c_matrix.cpp:28
DataType get_eigenvalue(const DataType *known_parameters, const DataType known_eigenvalue, const DataType *inquiry_parameters) const
This virtual function is implemented from its pure virtual function of the base class....
Definition: c_matrix.cpp:64