SparseCwiseBinaryOp.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_SPARSE_CWISE_BINARY_OP_H
11 #define EIGEN_SPARSE_CWISE_BINARY_OP_H
12 
13 namespace Eigen {
14 
15 // Here we have to handle 3 cases:
16 // 1 - sparse op dense
17 // 2 - dense op sparse
18 // 3 - sparse op sparse
19 // We also need to implement a 4th iterator for:
20 // 4 - dense op dense
21 // Finally, we also need to distinguish between the product and other operations :
22 // configuration returned mode
23 // 1 - sparse op dense product sparse
24 // generic dense
25 // 2 - dense op sparse product sparse
26 // generic dense
27 // 3 - sparse op sparse product sparse
28 // generic sparse
29 // 4 - dense op dense product dense
30 // generic dense
31 //
32 // TODO to ease compiler job, we could specialize product/quotient with a scalar
33 // and fallback to cwise-unary evaluator using bind1st_op and bind2nd_op.
34 
35 template<typename BinaryOp, typename Lhs, typename Rhs>
36 class CwiseBinaryOpImpl<BinaryOp, Lhs, Rhs, Sparse>
37  : public SparseMatrixBase<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
38 {
39  public:
44  {
49  THE_STORAGE_ORDER_OF_BOTH_SIDES_MUST_MATCH);
50  }
51 };
52 
53 namespace internal {
54 
55 
56 // Generic "sparse OP sparse"
57 template<typename XprType> struct binary_sparse_evaluator;
58 
59 template<typename BinaryOp, typename Lhs, typename Rhs>
61  : evaluator_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
62 {
63 protected:
67  typedef typename traits<XprType>::Scalar Scalar;
68  typedef typename XprType::StorageIndex StorageIndex;
69 public:
70 
72  {
73  public:
74 
76  : m_lhsIter(aEval.m_lhsImpl,outer), m_rhsIter(aEval.m_rhsImpl,outer), m_functor(aEval.m_functor)
77  {
78  this->operator++();
79  }
80 
82  {
83  if (m_lhsIter && m_rhsIter && (m_lhsIter.index() == m_rhsIter.index()))
84  {
85  m_id = m_lhsIter.index();
86  m_value = m_functor(m_lhsIter.value(), m_rhsIter.value());
87  ++m_lhsIter;
88  ++m_rhsIter;
89  }
90  else if (m_lhsIter && (!m_rhsIter || (m_lhsIter.index() < m_rhsIter.index())))
91  {
92  m_id = m_lhsIter.index();
93  m_value = m_functor(m_lhsIter.value(), Scalar(0));
94  ++m_lhsIter;
95  }
96  else if (m_rhsIter && (!m_lhsIter || (m_lhsIter.index() > m_rhsIter.index())))
97  {
98  m_id = m_rhsIter.index();
99  m_value = m_functor(Scalar(0), m_rhsIter.value());
100  ++m_rhsIter;
101  }
102  else
103  {
104  m_value = Scalar(0); // this is to avoid a compilation warning
105  m_id = -1;
106  }
107  return *this;
108  }
109 
110  EIGEN_STRONG_INLINE Scalar value() const { return m_value; }
111 
112  EIGEN_STRONG_INLINE StorageIndex index() const { return m_id; }
113  EIGEN_STRONG_INLINE Index outer() const { return m_lhsIter.outer(); }
114  EIGEN_STRONG_INLINE Index row() const { return Lhs::IsRowMajor ? m_lhsIter.row() : index(); }
115  EIGEN_STRONG_INLINE Index col() const { return Lhs::IsRowMajor ? index() : m_lhsIter.col(); }
116 
117  EIGEN_STRONG_INLINE operator bool() const { return m_id>=0; }
118 
119  protected:
122  const BinaryOp& m_functor;
125  };
126 
127 
128  enum {
130  Flags = XprType::Flags
131  };
132 
133  explicit binary_evaluator(const XprType& xpr)
134  : m_functor(xpr.functor()),
135  m_lhsImpl(xpr.lhs()),
136  m_rhsImpl(xpr.rhs())
137  {
139  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
140  }
141 
142  inline Index nonZerosEstimate() const {
143  return m_lhsImpl.nonZerosEstimate() + m_rhsImpl.nonZerosEstimate();
144  }
145 
146 protected:
147  const BinaryOp m_functor;
150 };
151 
152 // dense op sparse
153 template<typename BinaryOp, typename Lhs, typename Rhs>
155  : evaluator_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
156 {
157 protected:
160  typedef typename traits<XprType>::Scalar Scalar;
161  typedef typename XprType::StorageIndex StorageIndex;
162 public:
163 
165  {
166  enum { IsRowMajor = (int(Rhs::Flags)&RowMajorBit)==RowMajorBit };
167  public:
168 
170  : m_lhsEval(aEval.m_lhsImpl), m_rhsIter(aEval.m_rhsImpl,outer), m_functor(aEval.m_functor), m_value(0), m_id(-1), m_innerSize(aEval.m_expr.rhs().innerSize())
171  {
172  this->operator++();
173  }
174 
176  {
177  ++m_id;
178  if(m_id<m_innerSize)
179  {
180  Scalar lhsVal = m_lhsEval.coeff(IsRowMajor?m_rhsIter.outer():m_id,
181  IsRowMajor?m_id:m_rhsIter.outer());
182  if(m_rhsIter && m_rhsIter.index()==m_id)
183  {
184  m_value = m_functor(lhsVal, m_rhsIter.value());
185  ++m_rhsIter;
186  }
187  else
188  m_value = m_functor(lhsVal, Scalar(0));
189  }
190 
191  return *this;
192  }
193 
194  EIGEN_STRONG_INLINE Scalar value() const { eigen_internal_assert(m_id<m_innerSize); return m_value; }
195 
196  EIGEN_STRONG_INLINE StorageIndex index() const { return m_id; }
197  EIGEN_STRONG_INLINE Index outer() const { return m_rhsIter.outer(); }
198  EIGEN_STRONG_INLINE Index row() const { return IsRowMajor ? m_rhsIter.outer() : m_id; }
199  EIGEN_STRONG_INLINE Index col() const { return IsRowMajor ? m_id : m_rhsIter.outer(); }
200 
201  EIGEN_STRONG_INLINE operator bool() const { return m_id<m_innerSize; }
202 
203  protected:
206  const BinaryOp& m_functor;
210  };
211 
212 
213  enum {
215  Flags = XprType::Flags
216  };
217 
218  explicit binary_evaluator(const XprType& xpr)
219  : m_functor(xpr.functor()),
220  m_lhsImpl(xpr.lhs()),
221  m_rhsImpl(xpr.rhs()),
222  m_expr(xpr)
223  {
225  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
226  }
227 
228  inline Index nonZerosEstimate() const {
229  return m_expr.size();
230  }
231 
232 protected:
233  const BinaryOp m_functor;
236  const XprType &m_expr;
237 };
238 
239 // sparse op dense
240 template<typename BinaryOp, typename Lhs, typename Rhs>
242  : evaluator_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >
243 {
244 protected:
247  typedef typename traits<XprType>::Scalar Scalar;
248  typedef typename XprType::StorageIndex StorageIndex;
249 public:
250 
252  {
253  enum { IsRowMajor = (int(Lhs::Flags)&RowMajorBit)==RowMajorBit };
254  public:
255 
257  : m_lhsIter(aEval.m_lhsImpl,outer), m_rhsEval(aEval.m_rhsImpl), m_functor(aEval.m_functor), m_value(0), m_id(-1), m_innerSize(aEval.m_expr.lhs().innerSize())
258  {
259  this->operator++();
260  }
261 
263  {
264  ++m_id;
265  if(m_id<m_innerSize)
266  {
267  Scalar rhsVal = m_rhsEval.coeff(IsRowMajor?m_lhsIter.outer():m_id,
268  IsRowMajor?m_id:m_lhsIter.outer());
269  if(m_lhsIter && m_lhsIter.index()==m_id)
270  {
271  m_value = m_functor(m_lhsIter.value(), rhsVal);
272  ++m_lhsIter;
273  }
274  else
275  m_value = m_functor(Scalar(0),rhsVal);
276  }
277 
278  return *this;
279  }
280 
281  EIGEN_STRONG_INLINE Scalar value() const { eigen_internal_assert(m_id<m_innerSize); return m_value; }
282 
283  EIGEN_STRONG_INLINE StorageIndex index() const { return m_id; }
284  EIGEN_STRONG_INLINE Index outer() const { return m_lhsIter.outer(); }
285  EIGEN_STRONG_INLINE Index row() const { return IsRowMajor ? m_lhsIter.outer() : m_id; }
286  EIGEN_STRONG_INLINE Index col() const { return IsRowMajor ? m_id : m_lhsIter.outer(); }
287 
288  EIGEN_STRONG_INLINE operator bool() const { return m_id<m_innerSize; }
289 
290  protected:
293  const BinaryOp& m_functor;
297  };
298 
299 
300  enum {
302  Flags = XprType::Flags
303  };
304 
305  explicit binary_evaluator(const XprType& xpr)
306  : m_functor(xpr.functor()),
307  m_lhsImpl(xpr.lhs()),
308  m_rhsImpl(xpr.rhs()),
309  m_expr(xpr)
310  {
312  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
313  }
314 
315  inline Index nonZerosEstimate() const {
316  return m_expr.size();
317  }
318 
319 protected:
320  const BinaryOp m_functor;
323  const XprType &m_expr;
324 };
325 
326 template<typename T,
327  typename LhsKind = typename evaluator_traits<typename T::Lhs>::Kind,
328  typename RhsKind = typename evaluator_traits<typename T::Rhs>::Kind,
329  typename LhsScalar = typename traits<typename T::Lhs>::Scalar,
330  typename RhsScalar = typename traits<typename T::Rhs>::Scalar> struct sparse_conjunction_evaluator;
331 
332 // "sparse .* sparse"
333 template<typename T1, typename T2, typename Lhs, typename Rhs>
335  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_product_op<T1,T2>, Lhs, Rhs> >
336 {
339  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
340 };
341 // "dense .* sparse"
342 template<typename T1, typename T2, typename Lhs, typename Rhs>
344  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_product_op<T1,T2>, Lhs, Rhs> >
345 {
348  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
349 };
350 // "sparse .* dense"
351 template<typename T1, typename T2, typename Lhs, typename Rhs>
353  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_product_op<T1,T2>, Lhs, Rhs> >
354 {
357  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
358 };
359 
360 // "sparse ./ dense"
361 template<typename T1, typename T2, typename Lhs, typename Rhs>
363  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_quotient_op<T1,T2>, Lhs, Rhs> >
364 {
367  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
368 };
369 
370 // "sparse && sparse"
371 template<typename Lhs, typename Rhs>
373  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_boolean_and_op, Lhs, Rhs> >
374 {
377  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
378 };
379 // "dense && sparse"
380 template<typename Lhs, typename Rhs>
382  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_boolean_and_op, Lhs, Rhs> >
383 {
386  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
387 };
388 // "sparse && dense"
389 template<typename Lhs, typename Rhs>
391  : sparse_conjunction_evaluator<CwiseBinaryOp<scalar_boolean_and_op, Lhs, Rhs> >
392 {
395  explicit binary_evaluator(const XprType& xpr) : Base(xpr) {}
396 };
397 
398 // "sparse ^ sparse"
399 template<typename XprType>
401  : evaluator_base<XprType>
402 {
403 protected:
404  typedef typename XprType::Functor BinaryOp;
405  typedef typename XprType::Lhs LhsArg;
406  typedef typename XprType::Rhs RhsArg;
409  typedef typename XprType::StorageIndex StorageIndex;
410  typedef typename traits<XprType>::Scalar Scalar;
411 public:
412 
414  {
415  public:
416 
418  : m_lhsIter(aEval.m_lhsImpl,outer), m_rhsIter(aEval.m_rhsImpl,outer), m_functor(aEval.m_functor)
419  {
420  while (m_lhsIter && m_rhsIter && (m_lhsIter.index() != m_rhsIter.index()))
421  {
422  if (m_lhsIter.index() < m_rhsIter.index())
423  ++m_lhsIter;
424  else
425  ++m_rhsIter;
426  }
427  }
428 
430  {
431  ++m_lhsIter;
432  ++m_rhsIter;
433  while (m_lhsIter && m_rhsIter && (m_lhsIter.index() != m_rhsIter.index()))
434  {
435  if (m_lhsIter.index() < m_rhsIter.index())
436  ++m_lhsIter;
437  else
438  ++m_rhsIter;
439  }
440  return *this;
441  }
442 
443  EIGEN_STRONG_INLINE Scalar value() const { return m_functor(m_lhsIter.value(), m_rhsIter.value()); }
444 
445  EIGEN_STRONG_INLINE StorageIndex index() const { return m_lhsIter.index(); }
446  EIGEN_STRONG_INLINE Index outer() const { return m_lhsIter.outer(); }
447  EIGEN_STRONG_INLINE Index row() const { return m_lhsIter.row(); }
448  EIGEN_STRONG_INLINE Index col() const { return m_lhsIter.col(); }
449 
450  EIGEN_STRONG_INLINE operator bool() const { return (m_lhsIter && m_rhsIter); }
451 
452  protected:
456  };
457 
458 
459  enum {
461  Flags = XprType::Flags
462  };
463 
465  : m_functor(xpr.functor()),
466  m_lhsImpl(xpr.lhs()),
467  m_rhsImpl(xpr.rhs())
468  {
470  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
471  }
472 
473  inline Index nonZerosEstimate() const {
474  return (std::min)(m_lhsImpl.nonZerosEstimate(), m_rhsImpl.nonZerosEstimate());
475  }
476 
477 protected:
481 };
482 
483 // "dense ^ sparse"
484 template<typename XprType>
486  : evaluator_base<XprType>
487 {
488 protected:
489  typedef typename XprType::Functor BinaryOp;
490  typedef typename XprType::Lhs LhsArg;
491  typedef typename XprType::Rhs RhsArg;
494  typedef typename XprType::StorageIndex StorageIndex;
495  typedef typename traits<XprType>::Scalar Scalar;
496 public:
497 
499  {
500  enum { IsRowMajor = (int(RhsArg::Flags)&RowMajorBit)==RowMajorBit };
501 
502  public:
503 
505  : m_lhsEval(aEval.m_lhsImpl), m_rhsIter(aEval.m_rhsImpl,outer), m_functor(aEval.m_functor), m_outer(outer)
506  {}
507 
509  {
510  ++m_rhsIter;
511  return *this;
512  }
513 
515  { return m_functor(m_lhsEval.coeff(IsRowMajor?m_outer:m_rhsIter.index(),IsRowMajor?m_rhsIter.index():m_outer), m_rhsIter.value()); }
516 
517  EIGEN_STRONG_INLINE StorageIndex index() const { return m_rhsIter.index(); }
518  EIGEN_STRONG_INLINE Index outer() const { return m_rhsIter.outer(); }
519  EIGEN_STRONG_INLINE Index row() const { return m_rhsIter.row(); }
520  EIGEN_STRONG_INLINE Index col() const { return m_rhsIter.col(); }
521 
522  EIGEN_STRONG_INLINE operator bool() const { return m_rhsIter; }
523 
524  protected:
528  const Index m_outer;
529  };
530 
531 
532  enum {
534  Flags = XprType::Flags
535  };
536 
538  : m_functor(xpr.functor()),
539  m_lhsImpl(xpr.lhs()),
540  m_rhsImpl(xpr.rhs())
541  {
543  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
544  }
545 
546  inline Index nonZerosEstimate() const {
547  return m_rhsImpl.nonZerosEstimate();
548  }
549 
550 protected:
554 };
555 
556 // "sparse ^ dense"
557 template<typename XprType>
559  : evaluator_base<XprType>
560 {
561 protected:
562  typedef typename XprType::Functor BinaryOp;
563  typedef typename XprType::Lhs LhsArg;
564  typedef typename XprType::Rhs RhsArg;
567  typedef typename XprType::StorageIndex StorageIndex;
568  typedef typename traits<XprType>::Scalar Scalar;
569 public:
570 
572  {
573  enum { IsRowMajor = (int(LhsArg::Flags)&RowMajorBit)==RowMajorBit };
574 
575  public:
576 
578  : m_lhsIter(aEval.m_lhsImpl,outer), m_rhsEval(aEval.m_rhsImpl), m_functor(aEval.m_functor), m_outer(outer)
579  {}
580 
582  {
583  ++m_lhsIter;
584  return *this;
585  }
586 
588  { return m_functor(m_lhsIter.value(),
589  m_rhsEval.coeff(IsRowMajor?m_outer:m_lhsIter.index(),IsRowMajor?m_lhsIter.index():m_outer)); }
590 
591  EIGEN_STRONG_INLINE StorageIndex index() const { return m_lhsIter.index(); }
592  EIGEN_STRONG_INLINE Index outer() const { return m_lhsIter.outer(); }
593  EIGEN_STRONG_INLINE Index row() const { return m_lhsIter.row(); }
594  EIGEN_STRONG_INLINE Index col() const { return m_lhsIter.col(); }
595 
596  EIGEN_STRONG_INLINE operator bool() const { return m_lhsIter; }
597 
598  protected:
602  const Index m_outer;
603  };
604 
605 
606  enum {
608  Flags = XprType::Flags
609  };
610 
612  : m_functor(xpr.functor()),
613  m_lhsImpl(xpr.lhs()),
614  m_rhsImpl(xpr.rhs())
615  {
617  EIGEN_INTERNAL_CHECK_COST_VALUE(CoeffReadCost);
618  }
619 
620  inline Index nonZerosEstimate() const {
621  return m_lhsImpl.nonZerosEstimate();
622  }
623 
624 protected:
628 };
629 
630 }
631 
632 /***************************************************************************
633 * Implementation of SparseMatrixBase and SparseCwise functions/operators
634 ***************************************************************************/
635 
636 template<typename Derived>
637 template<typename OtherDerived>
639 {
641  return derived();
642 }
643 
644 template<typename Derived>
645 template<typename OtherDerived>
647 {
649  return derived();
650 }
651 
652 template<typename Derived>
653 template<typename OtherDerived>
654 EIGEN_STRONG_INLINE Derived &
656 {
657  return derived() = derived() - other.derived();
658 }
659 
660 template<typename Derived>
661 template<typename OtherDerived>
662 EIGEN_STRONG_INLINE Derived &
664 {
665  return derived() = derived() + other.derived();
666 }
667 
668 template<typename Derived>
669 template<typename OtherDerived>
671 {
673  return derived();
674 }
675 
676 template<typename Derived>
677 template<typename OtherDerived>
679 {
681  return derived();
682 }
683 
684 template<typename Derived>
685 template<typename OtherDerived>
688 {
689  return typename CwiseProductDenseReturnType<OtherDerived>::Type(derived(), other.derived());
690 }
691 
692 template<typename DenseDerived, typename SparseDerived>
695 {
696  return CwiseBinaryOp<internal::scalar_sum_op<typename DenseDerived::Scalar,typename SparseDerived::Scalar>, const DenseDerived, const SparseDerived>(a.derived(), b.derived());
697 }
698 
699 template<typename SparseDerived, typename DenseDerived>
700 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_sum_op<typename SparseDerived::Scalar,typename DenseDerived::Scalar>, const SparseDerived, const DenseDerived>
702 {
703  return CwiseBinaryOp<internal::scalar_sum_op<typename SparseDerived::Scalar,typename DenseDerived::Scalar>, const SparseDerived, const DenseDerived>(a.derived(), b.derived());
704 }
705 
706 template<typename DenseDerived, typename SparseDerived>
707 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_difference_op<typename DenseDerived::Scalar,typename SparseDerived::Scalar>, const DenseDerived, const SparseDerived>
709 {
710  return CwiseBinaryOp<internal::scalar_difference_op<typename DenseDerived::Scalar,typename SparseDerived::Scalar>, const DenseDerived, const SparseDerived>(a.derived(), b.derived());
711 }
712 
713 template<typename SparseDerived, typename DenseDerived>
714 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_difference_op<typename SparseDerived::Scalar,typename DenseDerived::Scalar>, const SparseDerived, const DenseDerived>
716 {
717  return CwiseBinaryOp<internal::scalar_difference_op<typename SparseDerived::Scalar,typename DenseDerived::Scalar>, const SparseDerived, const DenseDerived>(a.derived(), b.derived());
718 }
719 
720 } // end namespace Eigen
721 
722 #endif // EIGEN_SPARSE_CWISE_BINARY_OP_H
Eigen::SparseMatrixBase::cwiseProduct
const EIGEN_STRONG_INLINE CwiseProductDenseReturnType< OtherDerived >::Type cwiseProduct(const MatrixBase< OtherDerived > &other) const
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::RhsIterator
evaluator< RhsArg >::InnerIterator RhsIterator
Definition: SparseCwiseBinaryOp.h:408
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::m_outer
const Index m_outer
Definition: SparseCwiseBinaryOp.h:602
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const sparse_conjunction_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:504
gtsam.examples.DogLegOptimizerExample.int
int
Definition: DogLegOptimizerExample.py:111
Eigen::CwiseBinaryOpImpl
Definition: CwiseBinaryOp.h:55
Eigen::internal::Lhs
@ Lhs
Definition: TensorContractionMapper.h:19
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:281
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const binary_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:169
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IndexBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:386
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:447
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::sparse_conjunction_evaluator
sparse_conjunction_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:611
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:147
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:357
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:581
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:601
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::RhsEvaluator
evaluator< RhsArg > RhsEvaluator
Definition: SparseCwiseBinaryOp.h:566
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::BinaryOp
XprType::Functor BinaryOp
Definition: SparseCwiseBinaryOp.h:562
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:517
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IndexBased, IteratorBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:385
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IndexBased, IteratorBased >::XprType
CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:384
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:199
Eigen::CwiseBinaryOp
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:77
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:285
Eigen::internal::scalar_quotient_op
Definition: BinaryFunctors.h:378
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IteratorBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:376
Eigen::operator+
const EIGEN_STRONG_INLINE CwiseBinaryOp< internal::scalar_sum_op< typename DenseDerived::Scalar, typename SparseDerived::Scalar >, const DenseDerived, const SparseDerived > operator+(const MatrixBase< DenseDerived > &a, const SparseMatrixBase< SparseDerived > &b)
Definition: SparseCwiseBinaryOp.h:694
Eigen::SparseMatrixBase::operator-=
Derived & operator-=(const SparseMatrixBase< OtherDerived > &other)
Eigen::Sparse
Definition: Constants.h:510
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:546
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:518
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IteratorBased >::XprType
CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:337
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IndexBased, IteratorBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:347
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::m_value
Scalar m_value
Definition: SparseCwiseBinaryOp.h:123
b
Scalar * b
Definition: benchVecAdd.cpp:17
Eigen::EigenBase
Definition: EigenBase.h:29
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::m_lhsIter
LhsIterator m_lhsIter
Definition: SparseCwiseBinaryOp.h:453
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::m_rhsEval
const evaluator< RhsArg > & m_rhsEval
Definition: SparseCwiseBinaryOp.h:600
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const binary_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:256
Eigen::RowMajorBit
const unsigned int RowMajorBit
Definition: Constants.h:66
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const sparse_conjunction_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:417
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IndexBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:348
Eigen::SparseMatrixBase::operator+=
Derived & operator+=(const SparseMatrixBase< OtherDerived > &other)
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:527
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::m_lhsEval
const LhsEvaluator & m_lhsEval
Definition: SparseCwiseBinaryOp.h:525
Eigen::internal::binary_evaluator
Definition: CoreEvaluators.h:61
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IndexBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:395
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:446
T
Eigen::Triplet< double > T
Definition: Tutorial_sparse_example.cpp:6
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:520
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:67
Eigen::operator-
const EIGEN_STRONG_INLINE CwiseBinaryOp< internal::scalar_difference_op< typename DenseDerived::Scalar, typename SparseDerived::Scalar >, const DenseDerived, const SparseDerived > operator-(const MatrixBase< DenseDerived > &a, const SparseMatrixBase< SparseDerived > &b)
Definition: SparseCwiseBinaryOp.h:708
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:356
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:320
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:429
Eigen::internal::call_assignment_no_alias
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment_no_alias(Dst &dst, const Src &src, const Func &func)
Definition: AssignEvaluator.h:873
Eigen::internal::evaluator_base
Definition: CoreEvaluators.h:110
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::m_lhsImpl
evaluator< Lhs > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:148
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:283
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:305
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::m_outer
const Index m_outer
Definition: SparseCwiseBinaryOp.h:528
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::RhsIterator
evaluator< RhsArg >::InnerIterator RhsIterator
Definition: SparseCwiseBinaryOp.h:493
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:160
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::RhsIterator
evaluator< Rhs >::InnerIterator RhsIterator
Definition: SparseCwiseBinaryOp.h:158
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:284
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::RhsIterator
evaluator< Rhs >::InnerIterator RhsIterator
Definition: SparseCwiseBinaryOp.h:65
Eigen::internal::scalar_product_op
Definition: BinaryFunctors.h:70
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:68
eigen_internal_assert
#define eigen_internal_assert(x)
Definition: Macros.h:1043
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::LhsIterator
evaluator< LhsArg >::InnerIterator LhsIterator
Definition: SparseCwiseBinaryOp.h:565
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:114
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::sparse_conjunction_evaluator
sparse_conjunction_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:464
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:551
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_lhsEval
const evaluator< Lhs > & m_lhsEval
Definition: SparseCwiseBinaryOp.h:204
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::LhsIterator
evaluator< Lhs >::InnerIterator LhsIterator
Definition: SparseCwiseBinaryOp.h:245
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:473
EIGEN_SPARSE_PUBLIC_INTERFACE
#define EIGEN_SPARSE_PUBLIC_INTERFACE(Derived)
Definition: SparseUtil.h:43
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:115
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:247
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_id
StorageIndex m_id
Definition: SparseCwiseBinaryOp.h:208
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::LhsIterator
evaluator< Lhs >::InnerIterator LhsIterator
Definition: SparseCwiseBinaryOp.h:64
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_rhsEval
const evaluator< Rhs > & m_rhsEval
Definition: SparseCwiseBinaryOp.h:292
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:377
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:339
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_lhsIter
LhsIterator m_lhsIter
Definition: SparseCwiseBinaryOp.h:291
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::m_rhsImpl
evaluator< RhsArg > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:627
Eigen::internal::sparse_conjunction_evaluator
Definition: SparseCwiseBinaryOp.h:330
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::LhsIterator
evaluator< LhsArg >::InnerIterator LhsIterator
Definition: SparseCwiseBinaryOp.h:407
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IteratorBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:338
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::m_rhsImpl
evaluator< Rhs > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:235
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::BinaryOp
XprType::Functor BinaryOp
Definition: SparseCwiseBinaryOp.h:404
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IndexBased, IteratorBased >::XprType
CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:346
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::m_rhsIter
RhsIterator m_rhsIter
Definition: SparseCwiseBinaryOp.h:454
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:587
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:494
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:110
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:133
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:592
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::m_lhsImpl
evaluator< LhsArg > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:626
Eigen::Architecture::Type
Type
Definition: Constants.h:471
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::LhsEvaluator
evaluator< LhsArg > LhsEvaluator
Definition: SparseCwiseBinaryOp.h:492
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::XprType
CwiseBinaryOp< BinaryOp, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:246
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:81
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::m_rhsIter
RhsIterator m_rhsIter
Definition: SparseCwiseBinaryOp.h:121
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:194
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
Eigen::internal::IteratorBased
Definition: Constants.h:545
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:196
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::m_rhsImpl
evaluator< Rhs > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:149
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::XprType
CwiseBinaryOp< BinaryOp, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:159
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IteratorBased >::XprType
CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:375
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::sparse_conjunction_evaluator
sparse_conjunction_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:537
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:112
T2
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
Eigen::Triplet< double >
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::m_lhsImpl
evaluator< LhsArg > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:479
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:514
Eigen::internal::binary_sparse_evaluator
Definition: SparseCwiseBinaryOp.h:57
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_quotient_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:367
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_id
StorageIndex m_id
Definition: SparseCwiseBinaryOp.h:295
Eigen::internal::evaluator
Definition: CoreEvaluators.h:90
Eigen::bfloat16_impl::operator++
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 operator++(bfloat16 &a)
Definition: BFloat16.h:200
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:262
Eigen::InnerIterator
An InnerIterator allows to loop over the element of any matrix expression.
Definition: CoreIterators.h:33
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IndexBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:394
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:519
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::m_rhsImpl
evaluator< Rhs > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:322
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::value
EIGEN_STRONG_INLINE Scalar value() const
Definition: SparseCwiseBinaryOp.h:443
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:142
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::m_lhsImpl
evaluator< Lhs > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:321
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_innerSize
StorageIndex m_innerSize
Definition: SparseCwiseBinaryOp.h:209
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_value
Scalar m_value
Definition: SparseCwiseBinaryOp.h:294
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const sparse_conjunction_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:577
Eigen::internal::assign_op
Definition: AssignmentFunctors.h:21
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs >, IteratorBased, IndexBased >::XprType
CwiseBinaryOp< scalar_boolean_and_op, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:393
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:175
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:625
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::operator++
EIGEN_STRONG_INLINE InnerIterator & operator++()
Definition: SparseCwiseBinaryOp.h:508
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_innerSize
StorageIndex m_innerSize
Definition: SparseCwiseBinaryOp.h:296
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::LhsArg
XprType::Lhs LhsArg
Definition: SparseCwiseBinaryOp.h:490
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::InnerIterator::m_rhsIter
RhsIterator m_rhsIter
Definition: SparseCwiseBinaryOp.h:526
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::BinaryOp
XprType::Functor BinaryOp
Definition: SparseCwiseBinaryOp.h:489
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:233
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_rhsIter
RhsIterator m_rhsIter
Definition: SparseCwiseBinaryOp.h:205
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_value
Scalar m_value
Definition: SparseCwiseBinaryOp.h:207
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_quotient_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::Base
sparse_conjunction_evaluator< XprType > Base
Definition: SparseCwiseBinaryOp.h:366
EIGEN_STATIC_ASSERT
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::XprType
CwiseBinaryOp< BinaryOp, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:66
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::RhsArg
XprType::Rhs RhsArg
Definition: SparseCwiseBinaryOp.h:406
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::m_expr
const XprType & m_expr
Definition: SparseCwiseBinaryOp.h:236
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::RhsArg
XprType::Rhs RhsArg
Definition: SparseCwiseBinaryOp.h:564
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::m_id
StorageIndex m_id
Definition: SparseCwiseBinaryOp.h:124
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::RhsArg
XprType::Rhs RhsArg
Definition: SparseCwiseBinaryOp.h:491
Eigen::InnerIterator::index
EIGEN_STRONG_INLINE Index index() const
Definition: CoreIterators.h:57
Eigen::internal::Rhs
@ Rhs
Definition: TensorContractionMapper.h:18
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::m_lhsImpl
evaluator< LhsArg > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:552
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::m_lhsIter
LhsIterator m_lhsIter
Definition: SparseCwiseBinaryOp.h:599
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:495
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::binary_evaluator
binary_evaluator(const XprType &xpr)
Definition: SparseCwiseBinaryOp.h:218
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:122
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::m_lhsImpl
evaluator< Lhs > m_lhsImpl
Definition: SparseCwiseBinaryOp.h:234
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:410
Eigen::internal::sub_assign_op
Definition: AssignmentFunctors.h:67
Eigen::internal::sparse_conjunction_evaluator< XprType, IndexBased, IteratorBased >::m_rhsImpl
evaluator< RhsArg > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:553
Eigen::internal::scalar_boolean_and_op
Definition: BinaryFunctors.h:409
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:445
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:620
Eigen::SparseMatrixBase
Base class of any sparse matrices or sparse expressions.
Definition: ForwardDeclarations.h:301
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:113
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:198
min
#define min(a, b)
Definition: datatypes.h:19
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::LhsArg
XprType::Lhs LhsArg
Definition: SparseCwiseBinaryOp.h:405
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_quotient_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::XprType
CwiseBinaryOp< scalar_quotient_op< T1, T2 >, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:365
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::m_lhsIter
LhsIterator m_lhsIter
Definition: SparseCwiseBinaryOp.h:120
Eigen::internal::is_same
Definition: Meta.h:148
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:286
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:448
Eigen::internal::functor_traits
Definition: XprHelper.h:175
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::outer
EIGEN_STRONG_INLINE Index outer() const
Definition: SparseCwiseBinaryOp.h:197
Eigen::internal::add_assign_op
Definition: AssignmentFunctors.h:46
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:248
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::row
EIGEN_STRONG_INLINE Index row() const
Definition: SparseCwiseBinaryOp.h:593
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:567
internal
Definition: BandTriangularSolver.h:13
Eigen::MatrixBase
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:315
Eigen::CwiseBinaryOpImpl< BinaryOp, Lhs, Rhs, Sparse >::Derived
CwiseBinaryOp< BinaryOp, Lhs, Rhs > Derived
Definition: SparseCwiseBinaryOp.h:40
T1
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:455
EIGEN_INTERNAL_CHECK_COST_VALUE
#define EIGEN_INTERNAL_CHECK_COST_VALUE(C)
Definition: StaticAssert.h:218
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::LhsArg
XprType::Lhs LhsArg
Definition: SparseCwiseBinaryOp.h:563
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::index
EIGEN_STRONG_INLINE StorageIndex index() const
Definition: SparseCwiseBinaryOp.h:591
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::InnerIterator::col
EIGEN_STRONG_INLINE Index col() const
Definition: SparseCwiseBinaryOp.h:594
Eigen::internal::IndexBased
Definition: Constants.h:542
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IteratorBased >::InnerIterator::InnerIterator
EIGEN_STRONG_INLINE InnerIterator(const binary_evaluator &aEval, Index outer)
Definition: SparseCwiseBinaryOp.h:75
Eigen::internal::binary_evaluator< CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs >, IteratorBased, IndexBased >::XprType
CwiseBinaryOp< scalar_product_op< T1, T2 >, Lhs, Rhs > XprType
Definition: SparseCwiseBinaryOp.h:355
Eigen::DiagonalBase
Definition: DiagonalMatrix.h:18
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IndexBased >::Scalar
traits< XprType >::Scalar Scalar
Definition: SparseCwiseBinaryOp.h:568
Eigen::internal::call_assignment
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Definition: AssignEvaluator.h:834
test_callbacks.value
value
Definition: test_callbacks.py:160
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:206
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::m_functor
const BinaryOp m_functor
Definition: SparseCwiseBinaryOp.h:478
pybind_wrapper_test_script.other
other
Definition: pybind_wrapper_test_script.py:42
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::m_rhsImpl
evaluator< RhsArg > m_rhsImpl
Definition: SparseCwiseBinaryOp.h:480
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::m_expr
const XprType & m_expr
Definition: SparseCwiseBinaryOp.h:323
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::nonZerosEstimate
Index nonZerosEstimate() const
Definition: SparseCwiseBinaryOp.h:228
Scalar
SCALAR Scalar
Definition: bench_gemm.cpp:46
Eigen::CwiseBinaryOpImpl< BinaryOp, Lhs, Rhs, Sparse >::Base
SparseMatrixBase< Derived > Base
Definition: SparseCwiseBinaryOp.h:41
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IndexBased, IteratorBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:161
Eigen::internal::sparse_conjunction_evaluator< XprType, IteratorBased, IteratorBased >::StorageIndex
XprType::StorageIndex StorageIndex
Definition: SparseCwiseBinaryOp.h:409
Eigen::internal::binary_evaluator< CwiseBinaryOp< BinaryOp, Lhs, Rhs >, IteratorBased, IndexBased >::InnerIterator::m_functor
const BinaryOp & m_functor
Definition: SparseCwiseBinaryOp.h:293


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:28