MatrixCwiseUnaryOps.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-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2006-2008 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 // This file is a base class plugin containing matrix specifics coefficient wise functions.
12 
20 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived>
21 cwiseAbs() const { return derived(); }
22 
30 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived>
31 cwiseAbs2() const { return derived(); }
32 
40 inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived>
41 cwiseSqrt() const { return derived(); }
42 
50 inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived>
51 cwiseInverse() const { return derived(); }
52 
62 inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived>
63 cwiseEqual(const Scalar& s) const
64 {
65  return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,const Derived>
66  (derived(), std::bind1st(std::equal_to<Scalar>(), s));
67 }
#define EIGEN_STRONG_INLINE
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > cwiseAbs() const
const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > cwiseInverse() const
const CwiseUnaryOp< std::binder1st< std::equal_to< Scalar > >, const Derived > cwiseEqual(const Scalar &s) const
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > cwiseAbs2() const
const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > cwiseSqrt() const


tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Jun 10 2019 15:40:54