FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
max_rel_diff.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7#ifndef KERNEL_LAFEM_ARCH_MAX_REL_DIFF_HPP
8#define KERNEL_LAFEM_ARCH_MAX_REL_DIFF_HPP 1
9
10// includes, FEAT
12#include <kernel/backend.hpp>
13
14
15namespace FEAT
16{
17 namespace LAFEM
18 {
19 namespace Arch
20 {
22 {
23 template <typename DT_>
24 static DT_ value(const DT_ * const x, const DT_ * const y, const Index size)
25 {
26 return value_generic(x, y, size);
27 }
28
29 template <typename DT_>
30 static DT_ value_generic(const DT_ * const x, const DT_ * const y, const Index size);
31
32 };
33
34#ifdef FEAT_EICKT
35 extern template float MaxRelDiff::value_generic(const float * const, const float * const, const Index);
36 extern template double MaxRelDiff::value_generic(const double * const, const double * const, const Index);
37#endif
38
39 } // namespace Arch
40 } // namespace LAFEM
41} // namespace FEAT
42
43#ifndef __CUDACC__
44#include <kernel/lafem/arch/max_rel_diff_generic.hpp>
45#endif
46#endif // KERNEL_LAFEM_ARCH_MAX_REL_DIFF_HPP
FEAT Kernel base header.
FEAT namespace.
Definition: adjactor.hpp:12
@ value
specifies whether the space should supply basis function values
std::uint64_t Index
Index data type.