DiagonalProduct.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 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_DIAGONALPRODUCT_H
12 #define EIGEN_DIAGONALPRODUCT_H
13 
14 // IWYU pragma: private
15 #include "./InternalHeaderCheck.h"
16 
17 namespace Eigen {
18 
21 template <typename Derived>
22 template <typename DiagonalDerived>
24  const DiagonalBase<DiagonalDerived> &a_diagonal) const {
25  return Product<Derived, DiagonalDerived, LazyProduct>(derived(), a_diagonal.derived());
26 }
27 
28 } // end namespace Eigen
29 
30 #endif // EIGEN_DIAGONALPRODUCT_H
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
Base class for diagonal matrices and expressions.
Definition: DiagonalMatrix.h:33
EIGEN_DEVICE_FUNC const Derived & derived() const
Definition: DiagonalMatrix.h:57
EIGEN_DEVICE_FUNC const Product< Derived, OtherDerived > operator*(const MatrixBase< OtherDerived > &other) const
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:202
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70