ArraySamplers.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: ArraySamplers.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Generic N-D nearest array sampler class.
6 > Created Time: 2017/04/29
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_ARRAY_SAMPLERS_H
10 #define CUBBYFLOW_ARRAY_SAMPLERS_H
11 
12 namespace CubbyFlow
13 {
21  template <typename T, typename R, size_t N>
22  class NearestArraySampler final
23  {
24  public:
25  static_assert(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  {
38  public:
39  static_assert(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  {
52  public:
53  static_assert(N < 1 || N > 3, "Not implemented - N should be either 1, 2 or 3.");
54  };
55 }
56 
57 #endif
Generic N-D nearest array sampler class.
Definition: ArraySamplers.h:22
Definition: pybind11Utils.h:24
Generic N-D cubic array sampler class.
Definition: ArraySamplers.h:50
Generic N-D linear array sampler class.
Definition: ArraySamplers.h:36