FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
max_index.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_INDEX_HPP
8#define KERNEL_LAFEM_ARCH_MAX_INDEX_HPP 1
9
10// includes, FEAT
12
13namespace FEAT
14{
15 namespace LAFEM
16 {
17 namespace Arch
18 {
19 struct MaxIndex
20 {
21 template <typename DT_>
22 static Index value(const DT_ * const x, const Index size)
23 {
24 return value_generic(x, size);
25 }
26
27 template <typename ValueType_>
28 static ValueType_ value_blocked(const ValueType_ * const x, const Index size)
29 {
30 return value_blocked_generic(x, size);
31 }
32
33 template <typename DT_>
34 static Index value_generic(const DT_ * const x, const Index size);
35
36 template <typename ValueType_>
37 static ValueType_ value_blocked_generic(const ValueType_ * const x, const Index size);
38 };
39
40#ifdef FEAT_EICKT
41 extern template Index MaxIndex::value_generic(const float * const, const Index);
42 extern template Index MaxIndex::value_generic(const double * const, const Index);
43#endif
44
45 } // namespace Arch
46 } // namespace LAFEM
47} // namespace FEAT
48
49#ifndef __CUDACC__
50#include <kernel/lafem/arch/max_index_generic.hpp>
51#endif
52#endif // KERNEL_LAFEM_ARCH_MAX_INDEX_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.