MatrixCwiseUnaryOps.h
Go to the documentation of this file.
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
00005 // Copyright (C) 2006-2008 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 // This file is a base class plugin containing matrix specifics coefficient wise functions.
00012 
00020 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived>
00021 cwiseAbs() const { return derived(); }
00022 
00030 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived>
00031 cwiseAbs2() const { return derived(); }
00032 
00040 inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived>
00041 cwiseSqrt() const { return derived(); }
00042 
00050 inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived>
00051 cwiseInverse() const { return derived(); }
00052 
00062 inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived>
00063 cwiseEqual(const Scalar& s) const
00064 {
00065   return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,const Derived>
00066           (derived(), std::bind1st(std::equal_to<Scalar>(), s));
00067 }


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:38:05