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_arg_op<Scalar>, const Derived> CwiseArgReturnType;
18 typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> CwiseSqrtReturnType;
19 typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> CwiseSignReturnType;
20 typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> CwiseInverseReturnType;
21 
33 cwiseAbs() const { return CwiseAbsReturnType(derived()); }
34 
40 EIGEN_DOC_UNARY_ADDONS(cwiseAbs2,squared absolute value)
46 cwiseAbs2() const { return CwiseAbs2ReturnType(derived()); }
47 
58 inline const CwiseSqrtReturnType
59 cwiseSqrt() const { return CwiseSqrtReturnType(derived()); }
60 
69 inline const CwiseSignReturnType
70 cwiseSign() const { return CwiseSignReturnType(derived()); }
71 
72 
83 inline const CwiseInverseReturnType
84 cwiseInverse() const { return CwiseInverseReturnType(derived()); }
85 
92 
94 inline const CwiseArgReturnType
95 cwiseArg() const { return CwiseArgReturnType(derived()); }
EIGEN_DEVICE_FUNC
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
inverse
const EIGEN_DEVICE_FUNC InverseReturnType inverse() const
Definition: ArrayCwiseUnaryOps.h:411
sign
const EIGEN_DEVICE_FUNC SignReturnType sign() const
Definition: ArrayCwiseUnaryOps.h:219
CwiseAbs2ReturnType
CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > CwiseAbs2ReturnType
Definition: MatrixCwiseUnaryOps.h:16
CwiseArgReturnType
CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > CwiseArgReturnType
Definition: MatrixCwiseUnaryOps.h:17
square
const EIGEN_DEVICE_FUNC SquareReturnType square() const
Definition: ArrayCwiseUnaryOps.h:425
arg
Definition: cast.h:1412
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
cwiseSign
const EIGEN_DEVICE_FUNC CwiseSignReturnType cwiseSign() const
Definition: MatrixCwiseUnaryOps.h:70
cwiseInverse
const EIGEN_DEVICE_FUNC CwiseInverseReturnType cwiseInverse() const
Definition: MatrixCwiseUnaryOps.h:84
CwiseAbsReturnType
CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > CwiseAbsReturnType
Definition: MatrixCwiseUnaryOps.h:15
cwiseAbs2
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE CwiseAbs2ReturnType cwiseAbs2() const
Definition: MatrixCwiseUnaryOps.h:46
cwiseSqrt
const EIGEN_DEVICE_FUNC CwiseSqrtReturnType cwiseSqrt() const
Definition: MatrixCwiseUnaryOps.h:59
EIGEN_DOC_UNARY_ADDONS
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
Definition: ArrayBase.h:91
Eigen::CwiseUnaryOp
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
CwiseInverseReturnType
CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > CwiseInverseReturnType
Definition: MatrixCwiseUnaryOps.h:20
test_callbacks.value
value
Definition: test_callbacks.py:160
CwiseSqrtReturnType
CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > CwiseSqrtReturnType
Definition: MatrixCwiseUnaryOps.h:18
CwiseSignReturnType
CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > CwiseSignReturnType
Definition: MatrixCwiseUnaryOps.h:19
cwiseArg
const EIGEN_DEVICE_FUNC CwiseArgReturnType cwiseArg() const
Definition: MatrixCwiseUnaryOps.h:95
cwiseAbs
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE CwiseAbsReturnType cwiseAbs() const
Definition: MatrixCwiseUnaryOps.h:33


gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:01:56