Home
last modified time | relevance | path

Searched refs:_Tp (Results 1 – 25 of 164) sorted by relevance

1234567

/external/opencv3/modules/core/include/opencv2/core/
Dmatx.hpp86 template<typename _Tp, int m, int n> class Matx
89 enum { depth = DataType<_Tp>::depth,
97 typedef _Tp value_type;
98 typedef Matx<_Tp, m, n> mat_type;
99 typedef Matx<_Tp, shortdim, 1> diag_type;
104 Matx(_Tp v0); //!< 1x1 matrix
105 Matx(_Tp v0, _Tp v1); //!< 1x2 or 2x1 matrix
106 Matx(_Tp v0, _Tp v1, _Tp v2); //!< 1x3 or 3x1 matrix
107 Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3); //!< 1x4, 2x2 or 4x1 matrix
108 Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4); //!< 1x5 or 5x1 matrix
[all …]
Dtypes.hpp73 template<typename _Tp> class Complex
79 Complex( _Tp _re, _Tp _im = 0 );
86 _Tp re, im; //< the real and the imaginary parts
92 template<typename _Tp> class DataType< Complex<_Tp> >
95 typedef Complex<_Tp> value_type;
97 typedef _Tp channel_type;
147 template<typename _Tp> class Point_
150 typedef _Tp value_type;
154 Point_(_Tp _x, _Tp _y);
156 Point_(const Size_<_Tp>& sz);
[all …]
Dmat.inl.hpp76 template<typename _Tp> inline
77 _InputArray::_InputArray(const std::vector<_Tp>& vec) in _InputArray()
78 { init(FIXED_TYPE + STD_VECTOR + DataType<_Tp>::type + ACCESS_READ, &vec); } in _InputArray()
84 template<typename _Tp> inline
85 _InputArray::_InputArray(const std::vector<std::vector<_Tp> >& vec) in _InputArray()
86 { init(FIXED_TYPE + STD_VECTOR_VECTOR + DataType<_Tp>::type + ACCESS_READ, &vec); } in _InputArray()
88 template<typename _Tp> inline
89 _InputArray::_InputArray(const std::vector<Mat_<_Tp> >& vec) in _InputArray()
90 { init(FIXED_TYPE + STD_VECTOR_MAT + DataType<_Tp>::type + ACCESS_READ, &vec); } in _InputArray()
92 template<typename _Tp, int m, int n> inline
[all …]
Doperations.hpp64 template<typename _Tp, int m> struct Matx_FastInvOp
66 bool operator()(const Matx<_Tp, m, m>& a, Matx<_Tp, m, m>& b, int method) const in operator ()()
68 Matx<_Tp, m, m> temp = a; in operator ()()
72 b(i, i) = (_Tp)1; in operator ()()
75 return Cholesky(temp.val, m*sizeof(_Tp), m, b.val, m*sizeof(_Tp), m); in operator ()()
77 return LU(temp.val, m*sizeof(_Tp), m, b.val, m*sizeof(_Tp), m) != 0; in operator ()()
81 template<typename _Tp> struct Matx_FastInvOp<_Tp, 2>
83 bool operator()(const Matx<_Tp, 2, 2>& a, Matx<_Tp, 2, 2>& b, int) const in operator ()()
85 _Tp d = determinant(a); in operator ()()
97 template<typename _Tp> struct Matx_FastInvOp<_Tp, 3>
[all …]
Dmat.hpp175 template<typename _Tp> _InputArray(const Mat_<_Tp>& m);
176 template<typename _Tp> _InputArray(const std::vector<_Tp>& vec);
178 template<typename _Tp> _InputArray(const std::vector<std::vector<_Tp> >& vec);
179 template<typename _Tp> _InputArray(const std::vector<Mat_<_Tp> >& vec);
180 template<typename _Tp> _InputArray(const _Tp* vec, int n);
181 template<typename _Tp, int m, int n> _InputArray(const Matx<_Tp, m, n>& matx);
186 template<typename _Tp> _InputArray(const cudev::GpuMat_<_Tp>& m);
287 template<typename _Tp> _OutputArray(cudev::GpuMat_<_Tp>& m);
288 template<typename _Tp> _OutputArray(std::vector<_Tp>& vec);
290 template<typename _Tp> _OutputArray(std::vector<std::vector<_Tp> >& vec);
[all …]
Deigen.hpp62 template<typename _Tp, int _rows, int _cols, int _options, int _maxRows, int _maxCols> static inline
63 void eigen2cv( const Eigen::Matrix<_Tp, _rows, _cols, _options, _maxRows, _maxCols>& src, Mat& dst ) in eigen2cv() argument
67 Mat _src(src.cols(), src.rows(), DataType<_Tp>::type, in eigen2cv()
68 (void*)src.data(), src.stride()*sizeof(_Tp)); in eigen2cv()
73 Mat _src(src.rows(), src.cols(), DataType<_Tp>::type, in eigen2cv()
74 (void*)src.data(), src.stride()*sizeof(_Tp)); in eigen2cv()
80 template<typename _Tp, int _rows, int _cols, int _options, int _maxRows, int _maxCols> static inline
81 void eigen2cv( const Eigen::Matrix<_Tp, _rows, _cols, _options, _maxRows, _maxCols>& src, in eigen2cv() argument
82 Matx<_Tp, _rows, _cols>& dst ) in eigen2cv() argument
86 dst = Matx<_Tp, _cols, _rows>(static_cast<const _Tp*>(src.data())).t(); in eigen2cv()
[all …]
Dpersistence.hpp684 template<typename _Tp> static inline void read(const FileNode& node, Point_<_Tp>& value, const Poin… in read()
686 std::vector<_Tp> temp; FileNodeIterator it = node.begin(); it >> temp; in read()
687 …value = temp.size() != 2 ? default_value : Point_<_Tp>(saturate_cast<_Tp>(temp[0]), saturate_cast< in read()
690 template<typename _Tp> static inline void read(const FileNode& node, Point3_<_Tp>& value, const Poi… in read()
692 std::vector<_Tp> temp; FileNodeIterator it = node.begin(); it >> temp; in read()
693 …value = temp.size() != 3 ? default_value : Point3_<_Tp>(saturate_cast<_Tp>(temp[0]), saturate_cast… in read()
694 saturate_cast<_Tp>(temp[2])); in read()
697 template<typename _Tp> static inline void read(const FileNode& node, Size_<_Tp>& value, const Size_… in read()
699 std::vector<_Tp> temp; FileNodeIterator it = node.begin(); it >> temp; in read()
700 …value = temp.size() != 2 ? default_value : Size_<_Tp>(saturate_cast<_Tp>(temp[0]), saturate_cast<_… in read()
[all …]
Dutility.hpp110 template<typename _Tp, size_t fixed_size = 1024/sizeof(_Tp)+8> class AutoBuffer
113 typedef _Tp value_type;
121 AutoBuffer(const AutoBuffer<_Tp, fixed_size>& buf);
123 AutoBuffer<_Tp, fixed_size>& operator = (const AutoBuffer<_Tp, fixed_size>& buf);
137 operator _Tp* ();
139 operator const _Tp* () const;
143 _Tp* ptr;
147 _Tp buf[(fixed_size > 0) ? fixed_size : 1];
333 template<typename _Tp> static inline _Tp* alignPtr(_Tp* ptr, int n=(int)sizeof(_Tp)) in alignPtr()
335 return (_Tp*)(((size_t)ptr + n-1) & -n); in alignPtr()
[all …]
Dcore_c.h2793 template<typename _Tp> class SeqIterator;
2807 template<typename _Tp> class Seq
2810 typedef SeqIterator<_Tp> iterator;
2811 typedef SeqIterator<_Tp> const_iterator;
2820 _Tp& operator [](int idx);
2822 const _Tp& operator[](int idx) const;
2824 SeqIterator<_Tp> begin() const;
2826 SeqIterator<_Tp> end() const;
2838 size_t index(const _Tp& elem) const;
2840 void push_back(const _Tp& elem);
[all …]
/external/opencv3/modules/hal/include/opencv2/hal/
Dintrin_cpp.hpp51 template<typename _Tp, int n> struct v_reg
53 typedef _Tp lane_type;
54 typedef v_reg<typename V_TypeTraits<_Tp>::int_type, n> int_vec;
55 typedef v_reg<typename V_TypeTraits<_Tp>::abs_type, n> abs_vec;
58 explicit v_reg(const _Tp* ptr) { for( int i = 0; i < n; i++ ) s[i] = ptr[i]; } in v_reg()
59 v_reg(_Tp s0, _Tp s1) { s[0] = s0; s[1] = s1; } in v_reg()
60 v_reg(_Tp s0, _Tp s1, _Tp s2, _Tp s3) { s[0] = s0; s[1] = s1; s[2] = s2; s[3] = s3; } in v_reg()
61 v_reg(_Tp s0, _Tp s1, _Tp s2, _Tp s3, in v_reg()
62 _Tp s4, _Tp s5, _Tp s6, _Tp s7) in v_reg()
67 v_reg(_Tp s0, _Tp s1, _Tp s2, _Tp s3, in v_reg()
[all …]
/external/libcxx/include/
D__tuple25 template <class _Tp> class _LIBCPP_TYPE_VIS_ONLY tuple_size;
27 template <class _Tp>
28 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const _Tp>
29 : public tuple_size<_Tp> {};
31 template <class _Tp>
32 class _LIBCPP_TYPE_VIS_ONLY tuple_size<volatile _Tp>
33 : public tuple_size<_Tp> {};
35 template <class _Tp>
36 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const volatile _Tp>
37 : public tuple_size<_Tp> {};
[all …]
Datomic554 template <typename _Tp>
557 _LIBCPP_CONSTEXPR explicit __gcc_atomic_t(_Tp value) _NOEXCEPT
559 _Tp __a_value;
563 template <typename _Tp> _Tp __create();
565 template <typename _Tp, typename _Td>
566 typename enable_if<sizeof(_Tp()->__a_value = __create<_Td>()), char>::type
568 template <typename _Tp, typename _Up>
571 template <typename _Tp, typename _Td>
574 sizeof(__test_atomic_assignable<_Tp, _Td>(1)) == sizeof(char);
599 template <typename _Tp>
[all …]
Dcomplex258 template<class _Tp> class _LIBCPP_TYPE_VIS_ONLY complex;
260 template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);
261 template<class _Tp> complex<_Tp> operator/(const complex<_Tp>& __x, const complex<_Tp>& __y);
263 template<class _Tp>
267 typedef _Tp value_type;
525 template<class _Tp>
527 complex<_Tp>
528 operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
530 complex<_Tp> __t(__x);
535 template<class _Tp>
[all …]
Dtype_traits222 template <class _Tp>
223 struct __identity { typedef _Tp type; };
225 template <class _Tp, bool>
226 struct _LIBCPP_TYPE_VIS_ONLY __dependent_type : public _Tp {};
237 template <bool, class _Tp> struct _LIBCPP_TYPE_VIS_ONLY __lazy_enable_if {};
238 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY __lazy_enable_if<true, _Tp> {typedef typename _Tp
240 template <bool, class _Tp = void> struct _LIBCPP_TYPE_VIS_ONLY enable_if {};
241 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY enable_if<true, _Tp> {typedef _Tp type;};
244 template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
252 template <class _Tp, _Tp __v>
[all …]
D__functional_base_0319 template <class _Rp, class _Tp, class _T1>
23 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
26 __invoke(_Rp (_Tp::*__f)(), _T1& __t1)
31 template <class _Rp, class _Tp, class _T1, class _A0>
35 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
38 __invoke(_Rp (_Tp::*__f)(_A0), _T1& __t1, _A0& __a0)
43 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
47 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
50 __invoke(_Rp (_Tp::*__f)(_A0, _A1), _T1& __t1, _A0& __a0, _A1& __a1)
55 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
[all …]
Dlimits140 template <class _Tp, bool = is_arithmetic<_Tp>::value>
144 typedef _Tp type;
185 template <class _Tp, int digits, bool is_signed>
188 static _LIBCPP_CONSTEXPR const _Tp value = _Tp(_Tp(1) << digits);
191 template <class _Tp, int digits>
192 struct __libcpp_compute_min<_Tp, digits, false>
194 static _LIBCPP_CONSTEXPR const _Tp value = _Tp(0);
197 template <class _Tp>
198 class __libcpp_numeric_limits<_Tp, true>
201 typedef _Tp type;
[all …]
D__functional_base41 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash;
43 template <class _Tp>
51 static const bool value = sizeof(__test<_Tp>(0)) == 1;
55 template <class _Tp = void>
57 template <class _Tp>
59 struct _LIBCPP_TYPE_VIS_ONLY less : binary_function<_Tp, _Tp, bool>
62 bool operator()(const _Tp& __x, const _Tp& __y) const
82 template <class _Tp>
84 _Tp*
85 addressof(_Tp& __x) _NOEXCEPT
[all …]
Dtuple85 template <size_t _Ip, class ..._Tp>
86 using tuple_element_t = typename tuple_element <_Ip, _Tp...>::type; // C++14
142 template <class ..._Tp>
143 class _LIBCPP_TYPE_VIS_ONLY tuple_size<tuple<_Tp...> >
144 : public integral_constant<size_t, sizeof...(_Tp)>
150 template <size_t _Ip, class ..._Tp>
151 class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, tuple<_Tp...> >
154 typedef typename tuple_element<_Ip, __tuple_types<_Tp...> >::type type;
158 template <size_t _Ip, class ..._Tp>
159 using tuple_element_t = typename tuple_element <_Ip, _Tp...>::type;
[all …]
Dmemory642 template <class _Tp> class allocator;
668 template <class _Tp>
676 static const bool value = sizeof(__test<_Tp>(0)) == 1;
690 template <template <class, class...> class _Sp, class _Tp, class ..._Args>
691 struct __pointer_traits_element_type<_Sp<_Tp, _Args...>, true>
693 typedef typename _Sp<_Tp, _Args...>::element_type type;
696 template <template <class, class...> class _Sp, class _Tp, class ..._Args>
697 struct __pointer_traits_element_type<_Sp<_Tp, _Args...>, false>
699 typedef _Tp type;
704 template <template <class> class _Sp, class _Tp>
[all …]
Darray120 template <class _Tp, size_t _Size>
125 typedef _Tp value_type;
143 void swap(array& __a) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
199 template <class _Tp, size_t _Size>
200 typename array<_Tp, _Size>::reference
201 array<_Tp, _Size>::at(size_type __n)
212 template <class _Tp, size_t _Size>
214 typename array<_Tp, _Size>::const_reference
215 array<_Tp, _Size>::at(size_type __n) const
226 template <class _Tp, size_t _Size>
[all …]
/external/libcxx/include/experimental/
Dtype_traits197 template <class _Tp> _LIBCPP_CONSTEXPR bool is_void_v
198 = is_void<_Tp>::value;
200 template <class _Tp> _LIBCPP_CONSTEXPR bool is_null_pointer_v
201 = is_null_pointer<_Tp>::value;
203 template <class _Tp> _LIBCPP_CONSTEXPR bool is_integral_v
204 = is_integral<_Tp>::value;
206 template <class _Tp> _LIBCPP_CONSTEXPR bool is_floating_point_v
207 = is_floating_point<_Tp>::value;
209 template <class _Tp> _LIBCPP_CONSTEXPR bool is_array_v
210 = is_array<_Tp>::value;
[all …]
Doptional186 template <class _Tp, bool = is_trivially_destructible<_Tp>::value>
190 typedef _Tp value_type;
244 template <class _Tp>
245 class __optional_storage<_Tp, true>
248 typedef _Tp value_type;
295 template <class _Tp>
297 : private __optional_storage<_Tp>
299 typedef __optional_storage<_Tp> __base;
301 typedef _Tp value_type;
574 template <class _Tp>
[all …]
/external/clang/test/CodeGenCXX/
Ddebug-info-use-after-free.cpp92 template < typename _Tp > struct new_allocator
94 typedef _Tp *pointer;
99 template < typename _Tp > struct allocator:new_allocator < _Tp > {
101 template < typename _Tp, typename _Alloc > struct _Vector_base {
102 typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
112 template < typename _Tp, typename _Alloc =
113 allocator < _Tp > >struct vector:_Vector_base < _Tp, _Alloc > { };
139 template < typename _Tp > class allocator:__gnu_cxx::new_allocator < _Tp > {
143 template < typename _Tp, typename _Alloc = std::allocator < _Tp > >class vector:_Vector_base < _Tp,
160 _Tp > struct equal_to:
[all …]
Ddebug-info-template-partial-specialization.cpp4 template <class _Tp, class _Dp, bool > struct __pointer_type1 {};
9 template <class _Tp, class _Dp> struct __pointer_type1<_Tp, _Dp, false>
11 typedef _Tp* type;
14 template <class _Tp, class _Dp>
21 typedef typename __pointer_type_imp::__pointer_type1<_Tp, _Dp, false>::type type;
23 template <class _Tp> struct default_delete {};
24 template <class _Tp, class _Dp = default_delete<_Tp> > class unique_ptr
26 typedef typename __pointer_type2<_Tp, _Dp>::type pointer;
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dsaturate_cast.hpp56 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(uchar v) { return _Tp(v); } in saturate_cast()
57 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(schar v) { return _Tp(v); } in saturate_cast()
58 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(ushort v) { return _Tp(v); } in saturate_cast()
59 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(short v) { return _Tp(v); } in saturate_cast()
60 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(uint v) { return _Tp(v); } in saturate_cast()
61 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(int v) { return _Tp(v); } in saturate_cast()
62 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(float v) { return _Tp(v); } in saturate_cast()
63 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(double v) { return _Tp(v); } in saturate_cast()

1234567