Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:56:13

0001 // This file is part of Eigen, a lightweight C++ template library
0002 // for linear algebra.
0003 //
0004 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
0005 // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
0006 //
0007 // This Source Code Form is subject to the terms of the Mozilla
0008 // Public License v. 2.0. If a copy of the MPL was not distributed
0009 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
0010 
0011 #ifndef EIGEN_DIAGONALPRODUCT_H
0012 #define EIGEN_DIAGONALPRODUCT_H
0013 
0014 namespace Eigen { 
0015 
0016 /** \returns the diagonal matrix product of \c *this by the diagonal matrix \a diagonal.
0017   */
0018 template<typename Derived>
0019 template<typename DiagonalDerived>
0020 EIGEN_DEVICE_FUNC inline const Product<Derived, DiagonalDerived, LazyProduct>
0021 MatrixBase<Derived>::operator*(const DiagonalBase<DiagonalDerived> &a_diagonal) const
0022 {
0023   return Product<Derived, DiagonalDerived, LazyProduct>(derived(),a_diagonal.derived());
0024 }
0025 
0026 } // end namespace Eigen
0027 
0028 #endif // EIGEN_DIAGONALPRODUCT_H