Eigen  3.3.3
DiagonalProduct.h
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
00005 // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
00006 //
00007 // This Source Code Form is subject to the terms of the Mozilla
00008 // Public License v. 2.0. If a copy of the MPL was not distributed
00009 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
00010 
00011 #ifndef EIGEN_DIAGONALPRODUCT_H
00012 #define EIGEN_DIAGONALPRODUCT_H
00013 
00014 namespace Eigen { 
00015 
00018 template<typename Derived>
00019 template<typename DiagonalDerived>
00020 inline const Product<Derived, DiagonalDerived, LazyProduct>
00021 MatrixBase<Derived>::operator*(const DiagonalBase<DiagonalDerived> &a_diagonal) const
00022 {
00023   return Product<Derived, DiagonalDerived, LazyProduct>(derived(),a_diagonal.derived());
00024 }
00025 
00026 } // end namespace Eigen
00027 
00028 #endif // EIGEN_DIAGONALPRODUCT_H
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends