Jet
v1.3.3
jet
array_samplers.h
Go to the documentation of this file.
1
// Copyright (c) 2018 Doyub Kim
2
//
3
// I am making my contributions/submissions to this project solely in my
4
// personal capacity and am not conveying any rights to any intellectual
5
// property of any third parties.
6
7
#ifndef INCLUDE_JET_ARRAY_SAMPLERS_H_
8
#define INCLUDE_JET_ARRAY_SAMPLERS_H_
9
10
#include <
jet/array.h
>
11
12
namespace
jet
{
13
21
template
<
typename
T,
typename
R,
size_t
N>
22
class
NearestArraySampler
final {
23
public
:
24
static_assert(
25
N < 1 || N > 3,
"Not implemented - N should be either 1, 2 or 3."
);
26
};
27
35
template
<
typename
T,
typename
R,
size_t
N>
36
class
LinearArraySampler
final {
37
public
:
38
static_assert(
39
N < 1 || N > 3,
"Not implemented - N should be either 1, 2 or 3."
);
40
};
41
49
template
<
typename
T,
typename
R,
size_t
N>
50
class
CubicArraySampler
final {
51
public
:
52
static_assert(
53
N < 1 || N > 3,
"Not implemented - N should be either 1, 2 or 3."
);
54
};
55
56
}
// namespace jet
57
58
#endif // INCLUDE_JET_ARRAY_SAMPLERS_H_
jet::NearestArraySampler
Generic N-D nearest array sampler class.
Definition:
array_samplers.h:22
jet::CubicArraySampler
Generic N-D cubic array sampler class.
Definition:
array_samplers.h:50
array.h
jet
Definition:
advection_solver2.h:18
jet::LinearArraySampler
Generic N-D linear array sampler class.
Definition:
array_samplers.h:36
Generated by
1.8.18