imate
C++/CUDA Reference
cu_matrix.cu
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 "
./cu_matrix.h
"
17
18
19
// =============
20
// constructor 1
21
// =============
22
23
template
<
typename
DataType>
24
cuMatrix<DataType>::cuMatrix
()
25
{
26
}
27
28
29
// =============
30
// constructor 2
31
// =============
32
33
template
<
typename
DataType>
34
cuMatrix<DataType>::cuMatrix
(
int
num_gpu_devices_):
35
cuLinearOperator
<DataType>(num_gpu_devices_)
36
{
37
}
38
39
40
// ==========
41
// destructor
42
// ==========
43
44
template
<
typename
DataType>
45
cuMatrix<DataType>::~cuMatrix
()
46
{
47
}
48
49
50
// ===============================
51
// Explicit template instantiation
52
// ===============================
53
54
template
class
cuMatrix<float>
;
55
template
class
cuMatrix<double>
;
cuLinearOperator
Base class for linear operators. This class serves as interface for all derived classes.
Definition:
cu_linear_operator.h:44
cuMatrix
Base class for constant matrices.
Definition:
cu_matrix.h:41
cuMatrix::cuMatrix
cuMatrix()
Definition:
cu_matrix.cu:24
cuMatrix::~cuMatrix
virtual ~cuMatrix()
Definition:
cu_matrix.cu:45
cu_matrix.h
imate
_cu_linear_operator
cu_matrix.cu
Generated on Mon Jan 22 2024 00:04:57 for imate by
1.9.1