Sha256: ffa71f347a5914c9e9341ea82bb42bf7b6f7b8d0454bc17bc5629addb82138cb

Contents?: true

Size: 988 Bytes

Versions: 12

Compression:

Stored size: 988 Bytes

Contents

// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef EIGEN_DIAGONALPRODUCT_H
#define EIGEN_DIAGONALPRODUCT_H

namespace Eigen { 

/** \returns the diagonal matrix product of \c *this by the diagonal matrix \a diagonal.
  */
template<typename Derived>
template<typename DiagonalDerived>
EIGEN_DEVICE_FUNC inline const Product<Derived, DiagonalDerived, LazyProduct>
MatrixBase<Derived>::operator*(const DiagonalBase<DiagonalDerived> &a_diagonal) const
{
  return Product<Derived, DiagonalDerived, LazyProduct>(derived(),a_diagonal.derived());
}

} // end namespace Eigen

#endif // EIGEN_DIAGONALPRODUCT_H

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
tomoto-0.4.1 vendor/eigen/Eigen/src/Core/DiagonalProduct.h
umappp-0.2.0 vendor/Eigen/src/Core/DiagonalProduct.h
tomoto-0.4.0 vendor/eigen/Eigen/src/Core/DiagonalProduct.h
tomoto-0.3.3 vendor/eigen/Eigen/src/Core/DiagonalProduct.h
tomoto-0.3.2 vendor/eigen/Eigen/src/Core/DiagonalProduct.h
tomoto-0.3.1 vendor/eigen/Eigen/src/Core/DiagonalProduct.h
umappp-0.1.6 vendor/Eigen/src/Core/DiagonalProduct.h
umappp-0.1.5 vendor/Eigen/src/Core/DiagonalProduct.h
umappp-0.1.4 vendor/Eigen/src/Core/DiagonalProduct.h
umappp-0.1.3 vendor/Eigen/src/Core/DiagonalProduct.h
umappp-0.1.2 vendor/Eigen/src/Core/DiagonalProduct.h
tomoto-0.3.0 vendor/eigen/Eigen/src/Core/DiagonalProduct.h