Home | History | Annotate | Download | only in util

Lines Matching defs:array

15 // The array class is only available starting with cxx11. Emulate our own here
21 template <typename T, size_t n> class array {
44 EIGEN_STRONG_INLINE array() { }
46 EIGEN_STRONG_INLINE array(const T& v) {
51 EIGEN_STRONG_INLINE array(const T& v1, const T& v2) {
57 EIGEN_STRONG_INLINE array(const T& v1, const T& v2, const T& v3) {
64 EIGEN_STRONG_INLINE array(const T& v1, const T& v2, const T& v3,
73 EIGEN_STRONG_INLINE array(const T& v1, const T& v2, const T& v3, const T& v4,
83 EIGEN_STRONG_INLINE array(const T& v1, const T& v2, const T& v3, const T& v4,
94 EIGEN_STRONG_INLINE array(const T& v1, const T& v2, const T& v3, const T& v4,
106 EIGEN_STRONG_INLINE array(
122 EIGEN_STRONG_INLINE array(std::initializer_list<T> l) {
130 // Specialize array for zero size
131 template <typename T> class array<T, 0> {
135 eigen_assert(false && "Can't index a zero size array");
140 eigen_assert(false && "Can't index a zero size array");
146 eigen_assert(false && "Can't index a zero size array");
151 eigen_assert(false && "Can't index a zero size array");
156 eigen_assert(false && "Can't index a zero size array");
161 eigen_assert(false && "Can't index a zero size array");
168 EIGEN_STRONG_INLINE array() : dummy() { }
171 EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) : dummy() {
183 EIGEN_DEVICE_FUNC bool operator==(const array<T,N>& lhs, const array<T,N>& rhs) {
195 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T& array_get(array<T,N>& a) {
199 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T& array_get(const array<T,N>& a) {
204 template<class T, std::size_t N> struct array_size<array<T,N> > {
208 template<class T, std::size_t N> struct array_size<array<T,N>& > {
212 template<class T, std::size_t N> struct array_size<const array<T,N> > {
216 template<class T, std::size_t N> struct array_size<const array<T,N>& > {
225 // The compiler supports c++11, and we're not targetting cuda: use std::array as Eigen::array
226 #include <array>
229 template <typename T, std::size_t N> using array = std::array<T, N>;
248 template<std::size_t I, class T, std::size_t N> constexpr inline T& array_get(std::array<T,N>& a) { return (T&) STD_GET_ARR_HACK; }
249 template<std::size_t I, class T, std::size_t N> constexpr inline T&& array_get(std::array<T,N>&& a) { return (T&&) STD_GET_ARR_HACK; }
250 template<std::size_t I, class T, std::size_t N> constexpr inline T const& array_get(std::array<T,N> const& a) { return (T const&) STD_GET_ARR_HACK; }
255 template<class T, std::size_t N> struct array_size<const std::array<T,N> > {
259 template<class T, std::size_t N> struct array_size<std::array<T,N> > {