DiagonalMatrix.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) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
6 //
7 // This Source Code Form is subject to the terms of the Mozilla
8 // Public License v. 2.0. If a copy of the MPL was not distributed
9 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11 #ifndef EIGEN_DIAGONALMATRIX_H
12 #define EIGEN_DIAGONALMATRIX_H
13 
14 namespace Eigen {
15 
16 #ifndef EIGEN_PARSED_BY_DOXYGEN
17 template<typename Derived>
18 class DiagonalBase : public EigenBase<Derived>
19 {
20  public:
26 
27  enum {
28  RowsAtCompileTime = DiagonalVectorType::SizeAtCompileTime,
29  ColsAtCompileTime = DiagonalVectorType::SizeAtCompileTime,
30  MaxRowsAtCompileTime = DiagonalVectorType::MaxSizeAtCompileTime,
31  MaxColsAtCompileTime = DiagonalVectorType::MaxSizeAtCompileTime,
34  };
35 
39 
40  EIGEN_DEVICE_FUNC
41  inline const Derived& derived() const { return *static_cast<const Derived*>(this); }
42  EIGEN_DEVICE_FUNC
43  inline Derived& derived() { return *static_cast<Derived*>(this); }
44 
45  EIGEN_DEVICE_FUNC
46  DenseMatrixType toDenseMatrix() const { return derived(); }
47 
48  EIGEN_DEVICE_FUNC
49  inline const DiagonalVectorType& diagonal() const { return derived().diagonal(); }
50  EIGEN_DEVICE_FUNC
51  inline DiagonalVectorType& diagonal() { return derived().diagonal(); }
52 
53  EIGEN_DEVICE_FUNC
54  inline Index rows() const { return diagonal().size(); }
55  EIGEN_DEVICE_FUNC
56  inline Index cols() const { return diagonal().size(); }
57 
58  template<typename MatrixDerived>
59  EIGEN_DEVICE_FUNC
62  {
64  }
65 
67  EIGEN_DEVICE_FUNC
68  inline const InverseReturnType
69  inverse() const
70  {
72  }
73 
74  EIGEN_DEVICE_FUNC
76  operator*(const Scalar& scalar) const
77  {
79  }
80  EIGEN_DEVICE_FUNC
82  operator*(const Scalar& scalar, const DiagonalBase& other)
83  {
85  }
86 };
87 
88 #endif
89 
103 namespace internal {
104 template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
105 struct traits<DiagonalMatrix<_Scalar,SizeAtCompileTime,MaxSizeAtCompileTime> >
106  : traits<Matrix<_Scalar,SizeAtCompileTime,SizeAtCompileTime,0,MaxSizeAtCompileTime,MaxSizeAtCompileTime> >
107 {
110  enum {
112  };
113 };
114 }
115 template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
117  : public DiagonalBase<DiagonalMatrix<_Scalar,SizeAtCompileTime,MaxSizeAtCompileTime> >
118 {
119  public:
120  #ifndef EIGEN_PARSED_BY_DOXYGEN
122  typedef const DiagonalMatrix& Nested;
123  typedef _Scalar Scalar;
126  #endif
127 
128  protected:
129 
131 
132  public:
133 
135  EIGEN_DEVICE_FUNC
136  inline const DiagonalVectorType& diagonal() const { return m_diagonal; }
138  EIGEN_DEVICE_FUNC
139  inline DiagonalVectorType& diagonal() { return m_diagonal; }
140 
142  EIGEN_DEVICE_FUNC
143  inline DiagonalMatrix() {}
144 
146  EIGEN_DEVICE_FUNC
147  explicit inline DiagonalMatrix(Index dim) : m_diagonal(dim) {}
148 
150  EIGEN_DEVICE_FUNC
151  inline DiagonalMatrix(const Scalar& x, const Scalar& y) : m_diagonal(x,y) {}
152 
154  EIGEN_DEVICE_FUNC
155  inline DiagonalMatrix(const Scalar& x, const Scalar& y, const Scalar& z) : m_diagonal(x,y,z) {}
156 
158  template<typename OtherDerived>
159  EIGEN_DEVICE_FUNC
161 
162  #ifndef EIGEN_PARSED_BY_DOXYGEN
163 
164  inline DiagonalMatrix(const DiagonalMatrix& other) : m_diagonal(other.diagonal()) {}
165  #endif
166 
168  template<typename OtherDerived>
169  EIGEN_DEVICE_FUNC
170  explicit inline DiagonalMatrix(const MatrixBase<OtherDerived>& other) : m_diagonal(other)
171  {}
172 
174  template<typename OtherDerived>
175  EIGEN_DEVICE_FUNC
177  {
178  m_diagonal = other.diagonal();
179  return *this;
180  }
181 
182  #ifndef EIGEN_PARSED_BY_DOXYGEN
183 
186  EIGEN_DEVICE_FUNC
188  {
189  m_diagonal = other.diagonal();
190  return *this;
191  }
192  #endif
193 
195  EIGEN_DEVICE_FUNC
196  inline void resize(Index size) { m_diagonal.resize(size); }
198  EIGEN_DEVICE_FUNC
199  inline void setZero() { m_diagonal.setZero(); }
201  EIGEN_DEVICE_FUNC
202  inline void setZero(Index size) { m_diagonal.setZero(size); }
204  EIGEN_DEVICE_FUNC
205  inline void setIdentity() { m_diagonal.setOnes(); }
207  EIGEN_DEVICE_FUNC
208  inline void setIdentity(Index size) { m_diagonal.setOnes(size); }
209 };
210 
225 namespace internal {
226 template<typename _DiagonalVectorType>
227 struct traits<DiagonalWrapper<_DiagonalVectorType> >
228 {
229  typedef _DiagonalVectorType DiagonalVectorType;
231  typedef typename DiagonalVectorType::StorageIndex StorageIndex;
234  enum {
235  RowsAtCompileTime = DiagonalVectorType::SizeAtCompileTime,
236  ColsAtCompileTime = DiagonalVectorType::SizeAtCompileTime,
237  MaxRowsAtCompileTime = DiagonalVectorType::MaxSizeAtCompileTime,
238  MaxColsAtCompileTime = DiagonalVectorType::MaxSizeAtCompileTime,
240  };
241 };
242 }
243 
244 template<typename _DiagonalVectorType>
246  : public DiagonalBase<DiagonalWrapper<_DiagonalVectorType> >, internal::no_assignment_operator
247 {
248  public:
249  #ifndef EIGEN_PARSED_BY_DOXYGEN
250  typedef _DiagonalVectorType DiagonalVectorType;
252  #endif
253 
255  EIGEN_DEVICE_FUNC
256  explicit inline DiagonalWrapper(DiagonalVectorType& a_diagonal) : m_diagonal(a_diagonal) {}
257 
259  EIGEN_DEVICE_FUNC
260  const DiagonalVectorType& diagonal() const { return m_diagonal; }
261 
262  protected:
263  typename DiagonalVectorType::Nested m_diagonal;
264 };
265 
275 template<typename Derived>
278 {
279  return DiagonalWrapper<const Derived>(derived());
280 }
281 
290 template<typename Derived>
292 {
293  if(cols() != rows()) return false;
294  RealScalar maxAbsOnDiagonal = static_cast<RealScalar>(-1);
295  for(Index j = 0; j < cols(); ++j)
296  {
297  RealScalar absOnDiagonal = numext::abs(coeff(j,j));
298  if(absOnDiagonal > maxAbsOnDiagonal) maxAbsOnDiagonal = absOnDiagonal;
299  }
300  for(Index j = 0; j < cols(); ++j)
301  for(Index i = 0; i < j; ++i)
302  {
303  if(!internal::isMuchSmallerThan(coeff(i, j), maxAbsOnDiagonal, prec)) return false;
304  if(!internal::isMuchSmallerThan(coeff(j, i), maxAbsOnDiagonal, prec)) return false;
305  }
306  return true;
307 }
308 
309 namespace internal {
310 
311 template<> struct storage_kind_to_shape<DiagonalShape> { typedef DiagonalShape Shape; };
312 
313 struct Diagonal2Dense {};
314 
316 
317 // Diagonal matrix to Dense assignment
318 template< typename DstXprType, typename SrcXprType, typename Functor>
319 struct Assignment<DstXprType, SrcXprType, Functor, Diagonal2Dense>
320 {
321  static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op<typename DstXprType::Scalar,typename SrcXprType::Scalar> &/*func*/)
322  {
323  Index dstRows = src.rows();
324  Index dstCols = src.cols();
325  if((dst.rows()!=dstRows) || (dst.cols()!=dstCols))
326  dst.resize(dstRows, dstCols);
327 
328  dst.setZero();
329  dst.diagonal() = src.diagonal();
330  }
331 
332  static void run(DstXprType &dst, const SrcXprType &src, const internal::add_assign_op<typename DstXprType::Scalar,typename SrcXprType::Scalar> &/*func*/)
333  { dst.diagonal() += src.diagonal(); }
334 
335  static void run(DstXprType &dst, const SrcXprType &src, const internal::sub_assign_op<typename DstXprType::Scalar,typename SrcXprType::Scalar> &/*func*/)
336  { dst.diagonal() -= src.diagonal(); }
337 };
338 
339 } // namespace internal
340 
341 } // end namespace Eigen
342 
343 #endif // EIGEN_DIAGONALMATRIX_H
Eigen::DiagonalBase::PlainObject
DiagonalMatrix< Scalar, DiagonalVectorType::SizeAtCompileTime, DiagonalVectorType::MaxSizeAtCompileTime > PlainObject
Definition: DiagonalMatrix.h:38
Eigen::DiagonalBase::DenseType
DenseMatrixType DenseType
Definition: DiagonalMatrix.h:37
Eigen::DiagonalWrapper::DiagonalVectorType
_DiagonalVectorType DiagonalVectorType
Definition: DiagonalMatrix.h:250
Eigen
Definition: common.h:73
Eigen::DiagonalBase::Scalar
DiagonalVectorType::Scalar Scalar
Definition: DiagonalMatrix.h:22
Eigen::DiagonalMatrix
Represents a diagonal matrix with its storage.
Definition: DiagonalMatrix.h:116
Eigen::DiagonalBase::cols
EIGEN_DEVICE_FUNC Index cols() const
Definition: DiagonalMatrix.h:56
Eigen::internal::traits< DiagonalWrapper< _DiagonalVectorType > >::Scalar
DiagonalVectorType::Scalar Scalar
Definition: DiagonalMatrix.h:230
Eigen::DiagonalBase::toDenseMatrix
EIGEN_DEVICE_FUNC DenseMatrixType toDenseMatrix() const
Definition: DiagonalMatrix.h:46
Eigen::EigenBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::Index
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:38
Eigen::DenseShape
Definition: Constants.h:512
Eigen::DiagonalBase::operator*
EIGEN_DEVICE_FUNC const friend DiagonalWrapper< const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, DiagonalVectorType, product) > operator*(const Scalar &scalar, const DiagonalBase &other)
Definition: DiagonalMatrix.h:82
Eigen::DiagonalBase::rows
EIGEN_DEVICE_FUNC Index rows() const
Definition: DiagonalMatrix.h:54
RealScalar
NumTraits< Scalar >::Real RealScalar
Definition: common.h:85
Eigen::EigenBase
Definition: EigenBase.h:29
Eigen::internal::AssignmentKind< DenseShape, DiagonalShape >::Kind
Diagonal2Dense Kind
Definition: DiagonalMatrix.h:315
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix()
Definition: DiagonalMatrix.h:143
Eigen::internal::traits< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::StorageKind
DiagonalShape StorageKind
Definition: DiagonalMatrix.h:109
Eigen::internal::storage_kind_to_shape
Definition: CoreEvaluators.h:29
Eigen::internal::Diagonal2Dense
Definition: DiagonalMatrix.h:313
Scalar
SCALAR Scalar
Definition: common.h:84
Eigen::internal::isMuchSmallerThan
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const Scalar &x, const OtherScalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition: Eigen/src/Core/MathFunctions.h:1354
matrix
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Definition: common.h:102
Eigen::DiagonalWrapper::Nested
DiagonalWrapper Nested
Definition: DiagonalMatrix.h:251
Eigen::DiagonalBase::ColsAtCompileTime
@ ColsAtCompileTime
Definition: DiagonalMatrix.h:29
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix(const Scalar &x, const Scalar &y)
Definition: DiagonalMatrix.h:151
Eigen::EigenBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::size
EIGEN_DEVICE_FUNC Index size() const
Definition: EigenBase.h:66
Eigen::y
const T & y
Definition: AutoDiffScalar.h:549
Eigen::DiagonalBase::derived
const EIGEN_DEVICE_FUNC Derived & derived() const
Definition: DiagonalMatrix.h:41
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix(Index dim)
Definition: DiagonalMatrix.h:147
Eigen::DiagonalBase::diagonal
EIGEN_DEVICE_FUNC DiagonalVectorType & diagonal()
Definition: DiagonalMatrix.h:51
Eigen::DiagonalMatrix::setIdentity
EIGEN_DEVICE_FUNC void setIdentity(Index size)
Definition: DiagonalMatrix.h:208
Eigen::DiagonalMatrix::diagonal
const EIGEN_DEVICE_FUNC DiagonalVectorType & diagonal() const
Definition: DiagonalMatrix.h:136
Eigen::DenseBase< Solve< Decomposition, RhsType > >::RealScalar
NumTraits< Scalar >::Real RealScalar
Definition: DenseBase.h:73
Eigen::DiagonalBase::DenseMatrixType
Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime > DenseMatrixType
Definition: DiagonalMatrix.h:36
Eigen::DiagonalBase::StorageIndex
internal::traits< Derived >::StorageIndex StorageIndex
Definition: DiagonalMatrix.h:25
Eigen::DiagonalMatrix::resize
EIGEN_DEVICE_FUNC void resize(Index size)
Definition: DiagonalMatrix.h:196
Eigen::MatrixBase::isDiagonal
bool isDiagonal(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: DiagonalMatrix.h:291
Eigen::LvalueBit
const unsigned int LvalueBit
Definition: Constants.h:139
Eigen::DiagonalBase::StorageKind
internal::traits< Derived >::StorageKind StorageKind
Definition: DiagonalMatrix.h:24
Eigen::DiagonalMatrix::StorageKind
internal::traits< DiagonalMatrix >::StorageKind StorageKind
Definition: DiagonalMatrix.h:124
Eigen::DiagonalBase::diagonal
const EIGEN_DEVICE_FUNC DiagonalVectorType & diagonal() const
Definition: DiagonalMatrix.h:49
Eigen::DiagonalMatrix::StorageIndex
internal::traits< DiagonalMatrix >::StorageIndex StorageIndex
Definition: DiagonalMatrix.h:125
x
Scalar * x
Definition: level1_cplx_impl.h:89
Eigen::internal::traits< DiagonalWrapper< _DiagonalVectorType > >::DiagonalVectorType
_DiagonalVectorType DiagonalVectorType
Definition: DiagonalMatrix.h:229
Eigen::DiagonalWrapper::m_diagonal
DiagonalVectorType::Nested m_diagonal
Definition: DiagonalMatrix.h:263
Eigen::DiagonalBase::Flags
@ Flags
Definition: DiagonalMatrix.h:33
Eigen::Product
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:71
Eigen::DiagonalBase::RowsAtCompileTime
@ RowsAtCompileTime
Definition: DiagonalMatrix.h:28
cwiseInverse
const EIGEN_DEVICE_FUNC CwiseInverseReturnType cwiseInverse() const
Definition: MatrixCwiseUnaryOps.h:83
Eigen::MatrixBase::asDiagonal
const EIGEN_DEVICE_FUNC DiagonalWrapper< const Derived > asDiagonal() const
Definition: DiagonalMatrix.h:277
Eigen::DiagonalBase::DiagonalVectorType
internal::traits< Derived >::DiagonalVectorType DiagonalVectorType
Definition: DiagonalMatrix.h:21
Eigen::DiagonalMatrix::diagonal
EIGEN_DEVICE_FUNC DiagonalVectorType & diagonal()
Definition: DiagonalMatrix.h:139
Eigen::internal::traits< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::DiagonalVectorType
Matrix< _Scalar, SizeAtCompileTime, 1, 0, MaxSizeAtCompileTime, 1 > DiagonalVectorType
Definition: DiagonalMatrix.h:108
Eigen::DiagonalMatrix::operator=
EIGEN_DEVICE_FUNC DiagonalMatrix & operator=(const DiagonalBase< OtherDerived > &other)
Definition: DiagonalMatrix.h:176
Eigen::DiagonalWrapper
Expression of a diagonal matrix.
Definition: DiagonalMatrix.h:245
Eigen::DiagonalBase::MaxRowsAtCompileTime
@ MaxRowsAtCompileTime
Definition: DiagonalMatrix.h:30
Eigen::DiagonalBase::inverse
const EIGEN_DEVICE_FUNC InverseReturnType inverse() const
Definition: DiagonalMatrix.h:69
Eigen::DiagonalBase::RealScalar
DiagonalVectorType::RealScalar RealScalar
Definition: DiagonalMatrix.h:23
Eigen::DiagonalMatrix::m_diagonal
DiagonalVectorType m_diagonal
Definition: DiagonalMatrix.h:130
Eigen::DiagonalMatrix::operator=
EIGEN_DEVICE_FUNC DiagonalMatrix & operator=(const DiagonalMatrix &other)
Definition: DiagonalMatrix.h:187
Eigen::DiagonalBase::InverseReturnType
DiagonalWrapper< const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const DiagonalVectorType > > InverseReturnType
Definition: DiagonalMatrix.h:66
Eigen::internal::assign_op
Definition: AssignmentFunctors.h:21
Eigen::internal::Assignment< DstXprType, SrcXprType, Functor, Diagonal2Dense >::run
static void run(DstXprType &dst, const SrcXprType &src, const internal::add_assign_op< typename DstXprType::Scalar, typename SrcXprType::Scalar > &)
Definition: DiagonalMatrix.h:332
Eigen::DiagonalWrapper::DiagonalWrapper
EIGEN_DEVICE_FUNC DiagonalWrapper(DiagonalVectorType &a_diagonal)
Definition: DiagonalMatrix.h:256
Eigen::internal::traits< DiagonalWrapper< _DiagonalVectorType > >::StorageKind
DiagonalShape StorageKind
Definition: DiagonalMatrix.h:232
Eigen::DiagonalMatrix::DiagonalVectorType
internal::traits< DiagonalMatrix >::DiagonalVectorType DiagonalVectorType
Definition: DiagonalMatrix.h:121
Eigen::DiagonalBase::operator*
const EIGEN_DEVICE_FUNC Product< Derived, MatrixDerived, LazyProduct > operator*(const MatrixBase< MatrixDerived > &matrix) const
Definition: DiagonalMatrix.h:61
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
Eigen::DiagonalMatrix::Scalar
_Scalar Scalar
Definition: DiagonalMatrix.h:123
Eigen::DiagonalMatrix::Nested
const typedef DiagonalMatrix & Nested
Definition: DiagonalMatrix.h:122
Eigen::internal::sub_assign_op
Definition: AssignmentFunctors.h:67
Eigen::internal::Assignment
Definition: AssignEvaluator.h:770
Eigen::DiagonalWrapper::diagonal
const EIGEN_DEVICE_FUNC DiagonalVectorType & diagonal() const
Definition: DiagonalMatrix.h:260
Eigen::internal::traits< DiagonalWrapper< _DiagonalVectorType > >::StorageIndex
DiagonalVectorType::StorageIndex StorageIndex
Definition: DiagonalMatrix.h:231
Eigen::internal::Assignment< DstXprType, SrcXprType, Functor, Diagonal2Dense >::run
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< typename DstXprType::Scalar, typename SrcXprType::Scalar > &)
Definition: DiagonalMatrix.h:321
Eigen::DiagonalMatrix::DiagonalMatrix
DiagonalMatrix(const DiagonalMatrix &other)
Definition: DiagonalMatrix.h:164
Eigen::DiagonalBase::IsVectorAtCompileTime
@ IsVectorAtCompileTime
Definition: DiagonalMatrix.h:32
Eigen::internal::no_assignment_operator
Definition: XprHelper.h:89
Eigen::DiagonalBase::MaxColsAtCompileTime
@ MaxColsAtCompileTime
Definition: DiagonalMatrix.h:31
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
Eigen::EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE
const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(typename Derived::Scalar, Derived, pow) pow(const typename Derived
Definition: GlobalFunctions.h:168
Eigen::numext::abs
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE internal::enable_if< NumTraits< T >::IsSigned||NumTraits< T >::IsComplex, typename NumTraits< T >::Real >::type abs(const T &x)
Definition: Eigen/src/Core/MathFunctions.h:1051
Eigen::internal::add_assign_op
Definition: AssignmentFunctors.h:46
internal
Definition: BandTriangularSolver.h:13
Eigen::MatrixBase
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
Eigen::internal::Assignment< DstXprType, SrcXprType, Functor, Diagonal2Dense >::run
static void run(DstXprType &dst, const SrcXprType &src, const internal::sub_assign_op< typename DstXprType::Scalar, typename SrcXprType::Scalar > &)
Definition: DiagonalMatrix.h:335
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix(const DiagonalBase< OtherDerived > &other)
Definition: DiagonalMatrix.h:160
Eigen::NoPreferredStorageOrderBit
const unsigned int NoPreferredStorageOrderBit
Definition: Constants.h:173
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix(const Scalar &x, const Scalar &y, const Scalar &z)
Definition: DiagonalMatrix.h:155
Eigen::internal::traits< DiagonalWrapper< _DiagonalVectorType > >::XprKind
traits< DiagonalVectorType >::XprKind XprKind
Definition: DiagonalMatrix.h:233
Eigen::DiagonalMatrix::setZero
EIGEN_DEVICE_FUNC void setZero(Index size)
Definition: DiagonalMatrix.h:202
Eigen::DiagonalMatrix::setIdentity
EIGEN_DEVICE_FUNC void setIdentity()
Definition: DiagonalMatrix.h:205
Eigen::EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE
const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived, typename Derived::Scalar, pow) pow(const Eigen
Definition: GlobalFunctions.h:113
Eigen::DiagonalBase
Definition: DiagonalMatrix.h:18
Eigen::DiagonalMatrix::DiagonalMatrix
EIGEN_DEVICE_FUNC DiagonalMatrix(const MatrixBase< OtherDerived > &other)
Definition: DiagonalMatrix.h:170
Eigen::DiagonalBase::operator*
const EIGEN_DEVICE_FUNC DiagonalWrapper< const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DiagonalVectorType, Scalar, product) > operator*(const Scalar &scalar) const
Definition: DiagonalMatrix.h:76
Eigen::internal::storage_kind_to_shape< DiagonalShape >::Shape
DiagonalShape Shape
Definition: DiagonalMatrix.h:311
Eigen::DiagonalMatrix::setZero
EIGEN_DEVICE_FUNC void setZero()
Definition: DiagonalMatrix.h:199
Eigen::DiagonalBase::derived
EIGEN_DEVICE_FUNC Derived & derived()
Definition: DiagonalMatrix.h:43
Eigen::internal::AssignmentKind
Definition: AssignEvaluator.h:757
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Eigen::DiagonalShape
Definition: Constants.h:515


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:45