Advertisement
Guest User

Untitled

a guest
Mar 27th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 58.14 KB | None | 0 0
  1. template <class T>
  2. bool SGVector<T>::equals(SGVector<T>& other, float accuracy, bool tolerant)
  3. {
  4.     if(other.vlen != vlen)
  5.         return false ;
  6.  
  7.     for(index_t i=0 ; i<vlen ; i++){
  8.         if(!CMath::fequals<T>(*vector+i ,*other.vector+i , accuracy, tolerant))
  9.         {
  10.             return false ;
  11.         }
  12.     }
  13.     return true ;
  14. }
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.   from /usr/include/c++/4.8.2/ios:42,
  36.                  from /usr/include/c++/4.8.2/istream:38,
  37.                  from /usr/include/c++/4.8.2/sstream:38,
  38.                  from /usr/include/c++/4.8.2/complex:45,
  39.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  40.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  41.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  42. /usr/include/c++/4.8.2/bits/allocator.h:128:5: note: template<class _T1, class _T2> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_T2>&)
  43.      operator==(const allocator<_T1>&, const allocator<_T2>&)
  44.      ^
  45. /usr/include/c++/4.8.2/bits/allocator.h:128:5: note:   template argument deduction/substitution failed:
  46. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  47. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::allocator<_CharT>
  48.      else if ( (a==0) || (b==0) || (diff < comp) )
  49.                            ^
  50. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  51.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  52.                  from /usr/include/c++/4.8.2/ios:40,
  53.                  from /usr/include/c++/4.8.2/istream:38,
  54.                  from /usr/include/c++/4.8.2/sstream:38,
  55.                  from /usr/include/c++/4.8.2/complex:45,
  56.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  57.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  58.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  59. /usr/include/c++/4.8.2/bits/stl_iterator.h:1037:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
  60.      operator==(const move_iterator<_Iterator>& __x,
  61.      ^
  62. /usr/include/c++/4.8.2/bits/stl_iterator.h:1037:5: note:   template argument deduction/substitution failed:
  63. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  64. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  65.      else if ( (a==0) || (b==0) || (diff < comp) )
  66.                            ^
  67. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  68.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  69.                  from /usr/include/c++/4.8.2/ios:40,
  70.                  from /usr/include/c++/4.8.2/istream:38,
  71.                  from /usr/include/c++/4.8.2/sstream:38,
  72.                  from /usr/include/c++/4.8.2/complex:45,
  73.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  74.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  75.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  76. /usr/include/c++/4.8.2/bits/stl_iterator.h:1031:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
  77.      operator==(const move_iterator<_IteratorL>& __x,
  78.      ^
  79. /usr/include/c++/4.8.2/bits/stl_iterator.h:1031:5: note:   template argument deduction/substitution failed:
  80. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  81. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  82.      else if ( (a==0) || (b==0) || (diff < comp) )
  83.                            ^
  84. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  85.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  86.                  from /usr/include/c++/4.8.2/ios:40,
  87.                  from /usr/include/c++/4.8.2/istream:38,
  88.                  from /usr/include/c++/4.8.2/sstream:38,
  89.                  from /usr/include/c++/4.8.2/complex:45,
  90.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  91.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  92.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  93. /usr/include/c++/4.8.2/bits/stl_iterator.h:341:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
  94.      operator==(const reverse_iterator<_IteratorL>& __x,
  95.      ^
  96. /usr/include/c++/4.8.2/bits/stl_iterator.h:341:5: note:   template argument deduction/substitution failed:
  97. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  98. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  99.      else if ( (a==0) || (b==0) || (diff < comp) )
  100.                            ^
  101. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  102.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  103.                  from /usr/include/c++/4.8.2/ios:40,
  104.                  from /usr/include/c++/4.8.2/istream:38,
  105.                  from /usr/include/c++/4.8.2/sstream:38,
  106.                  from /usr/include/c++/4.8.2/complex:45,
  107.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  108.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  109.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  110. /usr/include/c++/4.8.2/bits/stl_iterator.h:291:5: note: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  111.      operator==(const reverse_iterator<_Iterator>& __x,
  112.      ^
  113. /usr/include/c++/4.8.2/bits/stl_iterator.h:291:5: note:   template argument deduction/substitution failed:
  114. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  115. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  116.      else if ( (a==0) || (b==0) || (diff < comp) )
  117.                            ^
  118. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:64:0,
  119.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  120.                  from /usr/include/c++/4.8.2/ios:40,
  121.                  from /usr/include/c++/4.8.2/istream:38,
  122.                  from /usr/include/c++/4.8.2/sstream:38,
  123.                  from /usr/include/c++/4.8.2/complex:45,
  124.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  125.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  126.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  127. /usr/include/c++/4.8.2/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  128.      operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  129.      ^
  130. /usr/include/c++/4.8.2/bits/stl_pair.h:214:5: note:   template argument deduction/substitution failed:
  131. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  132. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::pair<_T1, _T2>
  133.      else if ( (a==0) || (b==0) || (diff < comp) )
  134.                            ^
  135. In file included from /usr/include/c++/4.8.2/iosfwd:40:0,
  136.                  from /usr/include/c++/4.8.2/ios:38,
  137.                  from /usr/include/c++/4.8.2/istream:38,
  138.                  from /usr/include/c++/4.8.2/sstream:38,
  139.                  from /usr/include/c++/4.8.2/complex:45,
  140.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  141.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  142.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  143. /usr/include/c++/4.8.2/bits/postypes.h:216:5: note: template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
  144.      operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
  145.      ^
  146. /usr/include/c++/4.8.2/bits/postypes.h:216:5: note:   template argument deduction/substitution failed:
  147. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  148. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:27: note:   ‘const std::complex<double>’ is not derived from ‘const std::fpos<_StateT>
  149.      else if ( (a==0) || (b==0) || (diff < comp) )
  150.                            ^
  151. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: error: no match for ‘operator==(operand types are ‘const std::complex<double>’ and ‘int)
  152.      else if ( (a==0) || (b==0) || (diff < comp) )
  153.                  ^
  154. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note: candidates are:
  155. In file included from /usr/include/c++/4.8.2/map:62:0,
  156.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  157.                  from /usr/include/eigen3/Eigen/Sparse:19,
  158.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  159.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  160. /usr/include/c++/4.8.2/bits/stl_multimap.h:864:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
  161.      operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
  162.      ^
  163. /usr/include/c++/4.8.2/bits/stl_multimap.h:864:5: note:   template argument deduction/substitution failed:
  164. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  165. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>
  166.      else if ( (a==0) || (b==0) || (diff < comp) )
  167.                  ^
  168. In file included from /usr/include/c++/4.8.2/map:61:0,
  169.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  170.                  from /usr/include/eigen3/Eigen/Sparse:19,
  171.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  172.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  173. /usr/include/c++/4.8.2/bits/stl_map.h:962:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
  174.      operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
  175.      ^
  176. /usr/include/c++/4.8.2/bits/stl_map.h:962:5: note:   template argument deduction/substitution failed:
  177. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  178. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>
  179.      else if ( (a==0) || (b==0) || (diff < comp) )
  180.                  ^
  181. In file included from /usr/include/c++/4.8.2/map:60:0,
  182.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  183.                  from /usr/include/eigen3/Eigen/Sparse:19,
  184.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  185.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  186. /usr/include/c++/4.8.2/bits/stl_tree.h:907:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator==(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
  187.      operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
  188.      ^
  189. /usr/include/c++/4.8.2/bits/stl_tree.h:907:5: note:   template argument deduction/substitution failed:
  190. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  191. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>
  192.      else if ( (a==0) || (b==0) || (diff < comp) )
  193.                  ^
  194. In file included from /usr/include/c++/4.8.2/map:60:0,
  195.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  196.                  from /usr/include/eigen3/Eigen/Sparse:19,
  197.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  198.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  199. /usr/include/c++/4.8.2/bits/stl_tree.h:310:5: note: template<class _Val> bool std::operator==(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
  200.      operator==(const _Rb_tree_iterator<_Val>& __x,
  201.      ^
  202. /usr/include/c++/4.8.2/bits/stl_tree.h:310:5: note:   template argument deduction/substitution failed:
  203. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  204. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::_Rb_tree_iterator<_Tp>
  205.      else if ( (a==0) || (b==0) || (diff < comp) )
  206.                  ^
  207. In file included from /usr/include/c++/4.8.2/bits/stl_algo.h:66:0,
  208.                  from /usr/include/c++/4.8.2/algorithm:62,
  209.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  210. /usr/include/c++/4.8.2/functional:2536:5: note: template<class _Res, class ... _Args> bool std::operator==(std::nullptr_t, const std::function<_Res(_ArgTypes ...)>&)
  211.      operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept
  212.      ^
  213. /usr/include/c++/4.8.2/functional:2536:5: note:   template argument deduction/substitution failed:
  214. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  215. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   cannot convert ‘a’ (type ‘const std::complex<double>) to type ‘std::nullptr_t
  216.      else if ( (a==0) || (b==0) || (diff < comp) )
  217.                  ^
  218. In file included from /usr/include/c++/4.8.2/bits/stl_algo.h:66:0,
  219.                  from /usr/include/c++/4.8.2/algorithm:62,
  220.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  221. /usr/include/c++/4.8.2/functional:2530:5: note: template<class _Res, class ... _Args> bool std::operator==(const std::function<_Res(_ArgTypes ...)>&, std::nullptr_t)
  222.      operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept
  223.      ^
  224. /usr/include/c++/4.8.2/functional:2530:5: note:   template argument deduction/substitution failed:
  225. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  226. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::function<_Res(_ArgTypes ...)>
  227.      else if ( (a==0) || (b==0) || (diff < comp) )
  228.                  ^
  229. In file included from /usr/include/c++/4.8.2/functional:55:0,
  230.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:66,
  231.                  from /usr/include/c++/4.8.2/algorithm:62,
  232.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  233. /usr/include/c++/4.8.2/tuple:811:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&)
  234.      operator==(const tuple<_TElements...>& __t,
  235.      ^
  236. /usr/include/c++/4.8.2/tuple:811:5: note:   template argument deduction/substitution failed:
  237. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  238. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::tuple<_Elements ...>
  239.      else if ( (a==0) || (b==0) || (diff < comp) )
  240.                  ^
  241. In file included from /usr/include/c++/4.8.2/tuple:39:0,
  242.                  from /usr/include/c++/4.8.2/functional:55,
  243.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:66,
  244.                  from /usr/include/c++/4.8.2/algorithm:62,
  245.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  246. /usr/include/c++/4.8.2/array:228:5: note: template<class _Tp, long unsigned int _Nm> bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)
  247.      operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
  248.      ^
  249. /usr/include/c++/4.8.2/array:228:5: note:   template argument deduction/substitution failed:
  250. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  251. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::array<_Tp, _Nm>
  252.      else if ( (a==0) || (b==0) || (diff < comp) )
  253.                  ^
  254. In file included from /usr/include/c++/4.8.2/random:52:0,
  255.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
  256.                  from /usr/include/c++/4.8.2/algorithm:62,
  257.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  258. /usr/include/c++/4.8.2/bits/random.tcc:2030:5: note: template<class _RealType1> bool std::operator==(const std::normal_distribution<_RealType>&, const std::normal_distribution<_RealType>&)
  259.      operator==(const std::normal_distribution<_RealType>& __d1,
  260.      ^
  261. /usr/include/c++/4.8.2/bits/random.tcc:2030:5: note:   template argument deduction/substitution failed:
  262. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  263. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::normal_distribution<_RealType>
  264.      else if ( (a==0) || (b==0) || (diff < comp) )
  265.                  ^
  266. In file included from /usr/include/c++/4.8.2/vector:64:0,
  267.                  from /usr/include/c++/4.8.2/bits/random.h:34,
  268.                  from /usr/include/c++/4.8.2/random:50,
  269.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
  270.                  from /usr/include/c++/4.8.2/algorithm:62,
  271.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  272. /usr/include/c++/4.8.2/bits/stl_vector.h:1403:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
  273.      operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
  274.      ^
  275. /usr/include/c++/4.8.2/bits/stl_vector.h:1403:5: note:   template argument deduction/substitution failed:
  276. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  277. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::vector<_Tp, _Alloc>
  278.      else if ( (a==0) || (b==0) || (diff < comp) )
  279.                  ^
  280. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65:0,
  281.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  282.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  283. /usr/include/c++/4.8.2/complex:466:5: note: template<class _Tp> constexpr bool std::operator==(const _Tp&, const std::complex<_Tp>&)
  284.      operator==(const _Tp& __x, const complex<_Tp>& __y)
  285.      ^
  286. /usr/include/c++/4.8.2/complex:466:5: note:   template argument deduction/substitution failed:
  287. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  288. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   mismatched types ‘const std::complex<_Tp>’ and ‘int
  289.      else if ( (a==0) || (b==0) || (diff < comp) )
  290.                  ^
  291. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65:0,
  292.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  293.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  294. /usr/include/c++/4.8.2/complex:461:5: note: template<class _Tp> constexpr bool std::operator==(const std::complex<_Tp>&, const _Tp&)
  295.      operator==(const complex<_Tp>& __x, const _Tp& __y)
  296.      ^
  297. /usr/include/c++/4.8.2/complex:461:5: note:   template argument deduction/substitution failed:
  298. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  299. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   deduced conflicting types for parameter ‘const _Tp’ (double’ and ‘int)
  300.      else if ( (a==0) || (b==0) || (diff < comp) )
  301.                  ^
  302. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65:0,
  303.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  304.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  305. /usr/include/c++/4.8.2/complex:456:5: note: template<class _Tp> constexpr bool std::operator==(const std::complex<_Tp>&, const std::complex<_Tp>&)
  306.      operator==(const complex<_Tp>& __x, const complex<_Tp>& __y)
  307.      ^
  308. /usr/include/c++/4.8.2/complex:456:5: note:   template argument deduction/substitution failed:
  309. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  310. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   mismatched types ‘const std::complex<_Tp>’ and ‘int
  311.      else if ( (a==0) || (b==0) || (diff < comp) )
  312.                  ^
  313. In file included from /usr/include/c++/4.8.2/bits/locale_facets.h:48:0,
  314.                  from /usr/include/c++/4.8.2/bits/basic_ios.h:37,
  315.                  from /usr/include/c++/4.8.2/ios:44,
  316.                  from /usr/include/c++/4.8.2/istream:38,
  317.                  from /usr/include/c++/4.8.2/sstream:38,
  318.                  from /usr/include/c++/4.8.2/complex:45,
  319.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  320.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  321.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  322. /usr/include/c++/4.8.2/bits/streambuf_iterator.h:204:5: note: template<class _CharT, class _Traits> bool std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
  323.      operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
  324.      ^
  325. /usr/include/c++/4.8.2/bits/streambuf_iterator.h:204:5: note:   template argument deduction/substitution failed:
  326. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  327. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::istreambuf_iterator<_CharT, _Traits>
  328.      else if ( (a==0) || (b==0) || (diff < comp) )
  329.                  ^
  330. In file included from /usr/include/c++/4.8.2/string:52:0,
  331.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  332.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  333.                  from /usr/include/c++/4.8.2/ios:42,
  334.                  from /usr/include/c++/4.8.2/istream:38,
  335.                  from /usr/include/c++/4.8.2/sstream:38,
  336.                  from /usr/include/c++/4.8.2/complex:45,
  337.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  338.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  339.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  340. /usr/include/c++/4.8.2/bits/basic_string.h:2519:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
  341.      operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  342.      ^
  343. /usr/include/c++/4.8.2/bits/basic_string.h:2519:5: note:   template argument deduction/substitution failed:
  344. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  345. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>
  346.      else if ( (a==0) || (b==0) || (diff < comp) )
  347.                  ^
  348. In file included from /usr/include/c++/4.8.2/string:52:0,
  349.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  350.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  351.                  from /usr/include/c++/4.8.2/ios:42,
  352.                  from /usr/include/c++/4.8.2/istream:38,
  353.                  from /usr/include/c++/4.8.2/sstream:38,
  354.                  from /usr/include/c++/4.8.2/complex:45,
  355.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  356.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  357.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  358. /usr/include/c++/4.8.2/bits/basic_string.h:2507:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
  359.      operator==(const _CharT* __lhs,
  360.      ^
  361. /usr/include/c++/4.8.2/bits/basic_string.h:2507:5: note:   template argument deduction/substitution failed:
  362. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  363. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   mismatched types ‘const _CharT*’ and ‘std::complex<double>
  364.      else if ( (a==0) || (b==0) || (diff < comp) )
  365.                  ^
  366. In file included from /usr/include/c++/4.8.2/string:52:0,
  367.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  368.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  369.                  from /usr/include/c++/4.8.2/ios:42,
  370.                  from /usr/include/c++/4.8.2/istream:38,
  371.                  from /usr/include/c++/4.8.2/sstream:38,
  372.                  from /usr/include/c++/4.8.2/complex:45,
  373.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  374.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  375.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  376. /usr/include/c++/4.8.2/bits/basic_string.h:2493:5: note: template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const std::basic_string<_CharT>&, const std::basic_string<_CharT>&)
  377.      operator==(const basic_string<_CharT>& __lhs,
  378.      ^
  379. /usr/include/c++/4.8.2/bits/basic_string.h:2493:5: note:   template argument deduction/substitution failed:
  380. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  381. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::basic_string<_CharT>
  382.      else if ( (a==0) || (b==0) || (diff < comp) )
  383.                  ^
  384. In file included from /usr/include/c++/4.8.2/string:52:0,
  385.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  386.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  387.                  from /usr/include/c++/4.8.2/ios:42,
  388.                  from /usr/include/c++/4.8.2/istream:38,
  389.                  from /usr/include/c++/4.8.2/sstream:38,
  390.                  from /usr/include/c++/4.8.2/complex:45,
  391.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  392.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  393.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  394. /usr/include/c++/4.8.2/bits/basic_string.h:2486:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  395.      operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  396.      ^
  397. /usr/include/c++/4.8.2/bits/basic_string.h:2486:5: note:   template argument deduction/substitution failed:
  398. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  399. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>
  400.      else if ( (a==0) || (b==0) || (diff < comp) )
  401.                  ^
  402. In file included from /usr/include/c++/4.8.2/string:41:0,
  403.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  404.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  405.                  from /usr/include/c++/4.8.2/ios:42,
  406.                  from /usr/include/c++/4.8.2/istream:38,
  407.                  from /usr/include/c++/4.8.2/sstream:38,
  408.                  from /usr/include/c++/4.8.2/complex:45,
  409.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  410.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  411.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  412. /usr/include/c++/4.8.2/bits/allocator.h:133:5: note: template<class _Tp> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_CharT>&)
  413.      operator==(const allocator<_Tp>&, const allocator<_Tp>&)
  414.      ^
  415. /usr/include/c++/4.8.2/bits/allocator.h:133:5: note:   template argument deduction/substitution failed:
  416. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  417. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::allocator<_CharT>
  418.      else if ( (a==0) || (b==0) || (diff < comp) )
  419.                  ^
  420. In file included from /usr/include/c++/4.8.2/string:41:0,
  421.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  422.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  423.                  from /usr/include/c++/4.8.2/ios:42,
  424.                  from /usr/include/c++/4.8.2/istream:38,
  425.                  from /usr/include/c++/4.8.2/sstream:38,
  426.                  from /usr/include/c++/4.8.2/complex:45,
  427.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  428.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  429.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  430. /usr/include/c++/4.8.2/bits/allocator.h:128:5: note: template<class _T1, class _T2> bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_T2>&)
  431.      operator==(const allocator<_T1>&, const allocator<_T2>&)
  432.      ^
  433. /usr/include/c++/4.8.2/bits/allocator.h:128:5: note:   template argument deduction/substitution failed:
  434. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  435. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::allocator<_CharT>
  436.      else if ( (a==0) || (b==0) || (diff < comp) )
  437.                  ^
  438. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  439.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  440.                  from /usr/include/c++/4.8.2/ios:40,
  441.                  from /usr/include/c++/4.8.2/istream:38,
  442.                  from /usr/include/c++/4.8.2/sstream:38,
  443.                  from /usr/include/c++/4.8.2/complex:45,
  444.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  445.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  446.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  447. /usr/include/c++/4.8.2/bits/stl_iterator.h:1037:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
  448.      operator==(const move_iterator<_Iterator>& __x,
  449.      ^
  450. /usr/include/c++/4.8.2/bits/stl_iterator.h:1037:5: note:   template argument deduction/substitution failed:
  451. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  452. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  453.      else if ( (a==0) || (b==0) || (diff < comp) )
  454.                  ^
  455. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  456.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  457.                  from /usr/include/c++/4.8.2/ios:40,
  458.                  from /usr/include/c++/4.8.2/istream:38,
  459.                  from /usr/include/c++/4.8.2/sstream:38,
  460.                  from /usr/include/c++/4.8.2/complex:45,
  461.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  462.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  463.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  464. /usr/include/c++/4.8.2/bits/stl_iterator.h:1031:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
  465.      operator==(const move_iterator<_IteratorL>& __x,
  466.      ^
  467. /usr/include/c++/4.8.2/bits/stl_iterator.h:1031:5: note:   template argument deduction/substitution failed:
  468. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  469. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  470.      else if ( (a==0) || (b==0) || (diff < comp) )
  471.                  ^
  472. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  473.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  474.                  from /usr/include/c++/4.8.2/ios:40,
  475.                  from /usr/include/c++/4.8.2/istream:38,
  476.                  from /usr/include/c++/4.8.2/sstream:38,
  477.                  from /usr/include/c++/4.8.2/complex:45,
  478.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  479.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  480.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  481. /usr/include/c++/4.8.2/bits/stl_iterator.h:341:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
  482.      operator==(const reverse_iterator<_IteratorL>& __x,
  483.      ^
  484. /usr/include/c++/4.8.2/bits/stl_iterator.h:341:5: note:   template argument deduction/substitution failed:
  485. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  486. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  487.      else if ( (a==0) || (b==0) || (diff < comp) )
  488.                  ^
  489. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  490.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  491.                  from /usr/include/c++/4.8.2/ios:40,
  492.                  from /usr/include/c++/4.8.2/istream:38,
  493.                  from /usr/include/c++/4.8.2/sstream:38,
  494.                  from /usr/include/c++/4.8.2/complex:45,
  495.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  496.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  497.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  498. /usr/include/c++/4.8.2/bits/stl_iterator.h:291:5: note: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  499.      operator==(const reverse_iterator<_Iterator>& __x,
  500.      ^
  501. /usr/include/c++/4.8.2/bits/stl_iterator.h:291:5: note:   template argument deduction/substitution failed:
  502. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  503. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  504.      else if ( (a==0) || (b==0) || (diff < comp) )
  505.                  ^
  506. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:64:0,
  507.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  508.                  from /usr/include/c++/4.8.2/ios:40,
  509.                  from /usr/include/c++/4.8.2/istream:38,
  510.                  from /usr/include/c++/4.8.2/sstream:38,
  511.                  from /usr/include/c++/4.8.2/complex:45,
  512.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  513.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  514.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  515. /usr/include/c++/4.8.2/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  516.      operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  517.      ^
  518. /usr/include/c++/4.8.2/bits/stl_pair.h:214:5: note:   template argument deduction/substitution failed:
  519. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  520. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::pair<_T1, _T2>
  521.      else if ( (a==0) || (b==0) || (diff < comp) )
  522.                  ^
  523. In file included from /usr/include/c++/4.8.2/iosfwd:40:0,
  524.                  from /usr/include/c++/4.8.2/ios:38,
  525.                  from /usr/include/c++/4.8.2/istream:38,
  526.                  from /usr/include/c++/4.8.2/sstream:38,
  527.                  from /usr/include/c++/4.8.2/complex:45,
  528.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  529.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  530.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  531. /usr/include/c++/4.8.2/bits/postypes.h:216:5: note: template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
  532.      operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
  533.      ^
  534. /usr/include/c++/4.8.2/bits/postypes.h:216:5: note:   template argument deduction/substitution failed:
  535. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  536. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:256:17: note:   ‘const std::complex<double>’ is not derived from ‘const std::fpos<_StateT>
  537.      else if ( (a==0) || (b==0) || (diff < comp) )
  538.                  ^
  539. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: error: no match for ‘operator<(operand types are ‘const std::complex<double>’ and ‘std::complex<double>)
  540.       return (diff<(eps * comp));
  541.                   ^
  542. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note: candidates are:
  543. In file included from /usr/include/c++/4.8.2/map:62:0,
  544.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  545.                  from /usr/include/eigen3/Eigen/Sparse:19,
  546.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  547.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  548. /usr/include/c++/4.8.2/bits/stl_multimap.h:881:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
  549.      operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
  550.      ^
  551. /usr/include/c++/4.8.2/bits/stl_multimap.h:881:5: note:   template argument deduction/substitution failed:
  552. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  553. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>
  554.       return (diff<(eps * comp));
  555.                   ^
  556. In file included from /usr/include/c++/4.8.2/map:61:0,
  557.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  558.                  from /usr/include/eigen3/Eigen/Sparse:19,
  559.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  560.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  561. /usr/include/c++/4.8.2/bits/stl_map.h:979:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
  562.      operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x,
  563.      ^
  564. /usr/include/c++/4.8.2/bits/stl_map.h:979:5: note:   template argument deduction/substitution failed:
  565. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  566. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>
  567.       return (diff<(eps * comp));
  568.                   ^
  569. In file included from /usr/include/c++/4.8.2/map:60:0,
  570.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  571.                  from /usr/include/eigen3/Eigen/Sparse:19,
  572.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  573.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  574. /usr/include/c++/4.8.2/bits/stl_tree.h:917:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator<(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
  575.      operator<(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
  576.      ^
  577. /usr/include/c++/4.8.2/bits/stl_tree.h:917:5: note:   template argument deduction/substitution failed:
  578. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  579. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>
  580.       return (diff<(eps * comp));
  581.                   ^
  582. In file included from /usr/include/c++/4.8.2/functional:55:0,
  583.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:66,
  584.                  from /usr/include/c++/4.8.2/algorithm:62,
  585.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  586. /usr/include/c++/4.8.2/tuple:822:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&)
  587.      operator<(const tuple<_TElements...>& __t,
  588.      ^
  589. /usr/include/c++/4.8.2/tuple:822:5: note:   template argument deduction/substitution failed:
  590. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  591. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::tuple<_Elements ...>
  592.       return (diff<(eps * comp));
  593.                   ^
  594. In file included from /usr/include/c++/4.8.2/tuple:39:0,
  595.                  from /usr/include/c++/4.8.2/functional:55,
  596.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:66,
  597.                  from /usr/include/c++/4.8.2/algorithm:62,
  598.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  599. /usr/include/c++/4.8.2/array:238:5: note: template<class _Tp, long unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)
  600.      operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b)
  601.      ^
  602. [  3%] /usr/include/c++/4.8.2/array:238:5: note:   template argument deduction/substitution failed:
  603. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  604. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::array<_Tp, _Nm>
  605.       return (diff<(eps * comp));
  606.                   ^
  607. In file included from /usr/include/c++/4.8.2/vector:64:0,
  608.                  from /usr/include/c++/4.8.2/bits/random.h:34,
  609.                  from /usr/include/c++/4.8.2/random:50,
  610.                  from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
  611.                  from /usr/include/c++/4.8.2/algorithm:62,
  612.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:24:
  613. /usr/include/c++/4.8.2/bits/stl_vector.h:1420:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
  614.      operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
  615.      ^
  616. /usr/include/c++/4.8.2/bits/stl_vector.h:1420:5: note:   template argument deduction/substitution failed:
  617. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  618. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::vector<_Tp, _Alloc>
  619.       return (diff<(eps * comp));
  620.                   ^
  621. In file included from /usr/include/c++/4.8.2/string:52:0,
  622.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  623.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  624.                  from /usr/include/c++/4.8.2/ios:42,
  625.                  from /usr/include/c++/4.8.2/istream:38,
  626.                  from /usr/include/c++/4.8.2/sstream:38,
  627.                  from /usr/include/c++/4.8.2/complex:45,
  628.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  629.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  630.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  631. /usr/include/c++/4.8.2/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
  632.      operator<(const _CharT* __lhs,
  633.      ^
  634. /usr/include/c++/4.8.2/bits/basic_string.h:2593:5: note:   template argument deduction/substitution failed:
  635. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  636. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   mismatched types ‘const _CharT*’ and ‘std::complex<double>
  637.       return (diff<(eps * comp));
  638.                   ^
  639. In file included from /usr/include/c++/4.8.2/string:52:0,
  640.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  641.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  642.                  from /usr/include/c++/4.8.2/ios:42,
  643.                  from /usr/include/c++/4.8.2/istream:38,
  644.                  from /usr/include/c++/4.8.2/sstream:38,
  645.                  from /usr/include/c++/4.8.2/complex:45,
  646.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  647.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  648.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  649. /usr/include/c++/4.8.2/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
  650.      operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  651.      ^
  652. /usr/include/c++/4.8.2/bits/basic_string.h:2581:5: note:   template argument deduction/substitution failed:
  653. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  654. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>
  655.       return (diff<(eps * comp));
  656.                   ^
  657. In file included from /usr/include/c++/4.8.2/string:52:0,
  658.                  from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
  659.                  from /usr/include/c++/4.8.2/bits/ios_base.h:41,
  660.                  from /usr/include/c++/4.8.2/ios:42,
  661.                  from /usr/include/c++/4.8.2/istream:38,
  662.                  from /usr/include/c++/4.8.2/sstream:38,
  663.                  from /usr/include/c++/4.8.2/complex:45,
  664.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  665.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  666.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  667. /usr/include/c++/4.8.2/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  668.      operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  669.      ^
  670. /usr/include/c++/4.8.2/bits/basic_string.h:2569:5: note:   template argument deduction/substitution failed:
  671. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  672. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>
  673.       return (diff<(eps * comp));
  674.                   ^
  675. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  676.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  677.                  from /usr/include/c++/4.8.2/ios:40,
  678.                  from /usr/include/c++/4.8.2/istream:38,
  679.                  from /usr/include/c++/4.8.2/sstream:38,
  680.                  from /usr/include/c++/4.8.2/complex:45,
  681.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  682.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  683.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  684. /usr/include/c++/4.8.2/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
  685.      operator<(const move_iterator<_Iterator>& __x,
  686.      ^
  687. /usr/include/c++/4.8.2/bits/stl_iterator.h:1061:5: note:   template argument deduction/substitution failed:
  688. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  689. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  690.       return (diff<(eps * comp));
  691.                   ^
  692. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  693.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  694.                  from /usr/include/c++/4.8.2/ios:40,
  695.                  from /usr/include/c++/4.8.2/istream:38,
  696.                  from /usr/include/c++/4.8.2/sstream:38,
  697.                  from /usr/include/c++/4.8.2/complex:45,
  698.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  699.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  700.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  701. /usr/include/c++/4.8.2/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
  702.      operator<(const move_iterator<_IteratorL>& __x,
  703.      ^
  704. /usr/include/c++/4.8.2/bits/stl_iterator.h:1055:5: note:   template argument deduction/substitution failed:
  705. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  706. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::move_iterator<_Iterator>
  707.       return (diff<(eps * comp));
  708.                   ^
  709. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  710.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  711.                  from /usr/include/c++/4.8.2/ios:40,
  712.                  from /usr/include/c++/4.8.2/istream:38,
  713.                  from /usr/include/c++/4.8.2/sstream:38,
  714.                  from /usr/include/c++/4.8.2/complex:45,
  715.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  716.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  717.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  718. /usr/include/c++/4.8.2/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
  719.      operator<(const reverse_iterator<_IteratorL>& __x,
  720.      ^
  721. /usr/include/c++/4.8.2/bits/stl_iterator.h:347:5: note:   template argument deduction/substitution failed:
  722. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  723. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  724.       return (diff<(eps * comp));
  725.                   ^
  726. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
  727.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  728.                  from /usr/include/c++/4.8.2/ios:40,
  729.                  from /usr/include/c++/4.8.2/istream:38,
  730.                  from /usr/include/c++/4.8.2/sstream:38,
  731.                  from /usr/include/c++/4.8.2/complex:45,
  732.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  733.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  734.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  735. /usr/include/c++/4.8.2/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  736.      operator<(const reverse_iterator<_Iterator>& __x,
  737.      ^
  738. Building CXX object src/shogun/CMakeFiles/libshogun.dir/evaluation/MulticlassOVREvaluation.cpp.o
  739. /usr/include/c++/4.8.2/bits/stl_iterator.h:297:5: note:   template argument deduction/substitution failed:
  740. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  741. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::reverse_iterator<_Iterator>
  742.       return (diff<(eps * comp));
  743.                   ^
  744. In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:64:0,
  745.                  from /usr/include/c++/4.8.2/bits/char_traits.h:39,
  746.                  from /usr/include/c++/4.8.2/ios:40,
  747.                  from /usr/include/c++/4.8.2/istream:38,
  748.                  from /usr/include/c++/4.8.2/sstream:38,
  749.                  from /usr/include/c++/4.8.2/complex:45,
  750.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/common.h:65,
  751.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.h:19,
  752.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:17:
  753. /usr/include/c++/4.8.2/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  754.      operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  755.      ^
  756. /usr/include/c++/4.8.2/bits/stl_pair.h:220:5: note:   template argument deduction/substitution failed:
  757. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  758. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:257:18: note:   ‘const std::complex<double>’ is not derived from ‘const std::pair<_T1, _T2>
  759.       return (diff<(eps * comp));
  760.                   ^
  761. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:262:38: error: no match for ‘operator>(operand types are ‘std::complex<double>’ and ‘const std::complex<double>)
  762.       T check = ((diff/(absA + absB)) > diff)?
  763.                                       ^
  764. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:262:38: note: candidates are:
  765. In file included from /usr/include/c++/4.8.2/map:62:0,
  766.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  767.                  from /usr/include/eigen3/Eigen/Sparse:19,
  768.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  769.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  770. /usr/include/c++/4.8.2/bits/stl_multimap.h:895:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator>(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
  771.      operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
  772.      ^
  773. /usr/include/c++/4.8.2/bits/stl_multimap.h:895:5: note:   template argument deduction/substitution failed:
  774. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  775. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:262:38: note:   ‘std::complex<double>’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>
  776.       T check = ((diff/(absA + absB)) > diff)?
  777.                                       ^
  778. In file included from /usr/include/c++/4.8.2/map:61:0,
  779.                  from /usr/include/eigen3/Eigen/SparseCore:9,
  780.                  from /usr/include/eigen3/Eigen/Sparse:19,
  781.                  from /home/nikolis/gitrepo/shogun/src/shogun/mathematics/eigen3.h:20,
  782.                  from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:25:
  783. /usr/include/c++/4.8.2/bits/stl_map.h:993:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator>(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
  784.      operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x,
  785.      ^
  786. /usr/include/c++/4.8.2/bits/stl_map.h:993:5: note:   template argument deduction/substitution failed:
  787. In file included from /home/nikolis/gitrepo/shogun/src/shogun/lib/SGVector.cpp:22:0:
  788. /home/nikolis/gitrepo/shogun/src/shogun/mathematics/Math.h:262:38: note:   ‘std::complex<double>’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>
  789.       T check = ((diff/(absA + absB)) > diff)?
  790.                                       ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement