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 included into the body of the base classes supporting matrix specific coefficient-wise functions.
12 // This include MatrixBase and SparseMatrixBase.
13 
14 
15 typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> CwiseAbsReturnType;
16 typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> CwiseAbs2ReturnType;
17 typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> CwiseSqrtReturnType;
18 typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> CwiseSignReturnType;
19 typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> CwiseInverseReturnType;
20 
30 EIGEN_DEVICE_FUNC
32 cwiseAbs() const { return CwiseAbsReturnType(derived()); }
33 
39 EIGEN_DOC_UNARY_ADDONS(cwiseAbs2,squared absolute value)
43 EIGEN_DEVICE_FUNC
45 cwiseAbs2() const { return CwiseAbs2ReturnType(derived()); }
46 
56 EIGEN_DEVICE_FUNC
57 inline const CwiseSqrtReturnType
58 cwiseSqrt() const { return CwiseSqrtReturnType(derived()); }
59 
67 EIGEN_DEVICE_FUNC
68 inline const CwiseSignReturnType
69 cwiseSign() const { return CwiseSignReturnType(derived()); }
70 
71 
81 EIGEN_DEVICE_FUNC
82 inline const CwiseInverseReturnType
83 cwiseInverse() const { return CwiseInverseReturnType(derived()); }
84 
85 
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
Definition: ArrayBase.h:90
#define EIGEN_STRONG_INLINE
Definition: Macros.h:494
CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > CwiseSqrtReturnType
CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > CwiseSignReturnType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbs2ReturnType cwiseAbs2() const
EIGEN_DEVICE_FUNC const CwiseInverseReturnType cwiseInverse() const
CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > CwiseAbs2ReturnType
const mpreal root(const mpreal &x, unsigned long int k, mp_rnd_t r=mpreal::get_default_rnd())
Definition: mpreal.h:2194
EIGEN_DEVICE_FUNC const CwiseSignReturnType cwiseSign() const
EIGEN_DEVICE_FUNC const SignReturnType sign() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbsReturnType cwiseAbs() const
CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > CwiseAbsReturnType
EIGEN_DEVICE_FUNC const CwiseSqrtReturnType cwiseSqrt() const
CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > CwiseInverseReturnType
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
EIGEN_DEVICE_FUNC const InverseReturnType inverse() const
EIGEN_DEVICE_FUNC const SquareReturnType square() const


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:54