Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
110 lines (81 loc) · 2.36 KB

File metadata and controls

110 lines (81 loc) · 2.36 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// -*- c++ -*-
/*
* Copyright (c) 2010-2012, Jim Bosch
* All rights reserved.
*
* ndarray is distributed under a simple BSD-like license;
* see the LICENSE file that should be present in the root
* of the source distribution, or alternately available at:
* https://github.com/ndarray/ndarray
*/
#ifndef NDARRAY_ndarray_fwd_h_INCLUDED
#define NDARRAY_ndarray_fwd_h_INCLUDED
/**
* @file ndarray_fwd.h
*
* @brief Forward declarations and default template parameters for ndarray.
*/
/// \defgroup ndarrayMainGroup Main
/// \defgroup ndarrayOpGroup Operators
/// \defgroup ndarrayVectorGroup Vectors
/// @internal \defgroup ndarrayInternalGroup Internals
#include <cstddef>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/mpl/bool.hpp>
#include <cassert>
#ifdef __GNUC__
#if __GNUC__ == 4 && __GNUC_MINOR__ == 5
#define GCC_45
#endif
#endif
#define NDARRAY_ASSERT(ARG) assert(ARG)
namespace ndarray {
template <typename T, int N, int C> struct ArrayTraits;
template <typename Expression_> struct ExpressionTraits;
class Manager;
/// @brief An enumeration for stride computation.
enum DataOrderEnum { ROW_MAJOR=1, COLUMN_MAJOR=2 };
typedef std::size_t Size;
typedef std::ptrdiff_t Offset;
namespace detail {
template <int N> class Core;
class CountingExpression;
template <
typename Operand,
typename UnaryFunction,
int N = ExpressionTraits<Operand>::ND::value
>
class UnaryOpExpression;
template <
typename Operand1,
typename Operand2,
typename BinaryFunction,
int N = ExpressionTraits<Operand1>::ND::value
>
class BinaryOpExpression;
template <typename Iterator_> struct IteratorTraits;
template <typename T, int N, int C> class NestedIterator;
template <typename T> class StridedIterator;
#ifndef GCC_45
template <
typename Operand,
typename UnaryFunction
>
class UnaryOpIterator;
template <
typename Operand1,
typename Operand2,
typename BinaryFunction
>
class BinaryOpIterator;
#endif
} // namespace detail
template <typename Derived> class ExpressionBase;
template <typename Derived> class ArrayBase;
template <typename T, int N, int C=0> class ArrayRef;
template <typename T, int N, int C=0> class Array;
template <typename T, int N> struct Vector;
} // namespace ndarray
#endif // !NDARRAY_ndarray_fwd_h_INCLUDED
Morty Proxy This is a proxified and sanitized view of the page, visit original site.