imate
C++/CUDA Reference
identity.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 "
./identity.h
"
17
18
19
// =================
20
// Identity function (float)
21
// =================
22
26
27
float
Identity::function
(
const
float
lambda_)
const
28
{
29
return
lambda_;
30
}
31
32
33
// =================
34
// Identity function (double)
35
// =================
36
40
41
double
Identity::function
(
const
double
lambda_)
const
42
{
43
return
lambda_;
44
}
45
46
47
// =================
48
// Identity function (long double)
49
// =================
50
54
55
long
double
Identity::function
(
const
long
double
lambda_)
const
56
{
57
return
lambda_;
58
}
Identity::function
virtual float function(const float lambda_) const
Definition:
identity.cpp:27
identity.h
imate
functions
identity.cpp
Generated on Mon Jan 22 2024 00:04:57 for imate by
1.9.1