// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014-2019 Gael Guennebaud <gael.guennebaud@inria.fr> // // 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_INVERSE_H #define EIGEN_INVERSE_H
namespace Eigen {
template<typename XprType,typename StorageKind> class InverseImpl;
/** \class Inverse * * \brief Expression of the inverse of another expression * * \tparam XprType the type of the expression we are taking the inverse * * This class represents an abstract expression of A.inverse() * and most of the time this is the only way it is used. *
*/ template<typename XprType> class Inverse : public InverseImpl<XprType,typename internal::traits<XprType>::StorageKind>
{ public: typedeftypename XprType::StorageIndex StorageIndex; typedeftypename XprType::Scalar Scalar; typedeftypename internal::ref_selector<XprType>::type XprTypeNested; typedeftypename internal::remove_all<XprTypeNested>::type XprTypeNestedCleaned; typedeftypename internal::ref_selector<Inverse>::type Nested; typedeftypename internal::remove_all<XprType>::type NestedExpression;
/** \internal * \brief Default evaluator for Inverse expression. * * This default evaluator for Inverse expression simply evaluate the inverse into a temporary * by a call to internal::call_assignment_no_alias. * Therefore, inverse implementers only have to specialize Assignment<Dst,Inverse<...>, ...> for * there own nested expression. * * \sa class Inverse
*/ template<typename ArgType> struct unary_evaluator<Inverse<ArgType> >
: public evaluator<typename Inverse<ArgType>::PlainObject>
{ typedef Inverse<ArgType> InverseType; typedeftypename InverseType::PlainObject PlainObject; typedef evaluator<PlainObject> Base;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.