TR-mbed 1.0
Loading...
Searching...
No Matches
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
15typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> CwiseAbsReturnType;
16typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> CwiseAbs2ReturnType;
17typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> CwiseArgReturnType;
18typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> CwiseSqrtReturnType;
19typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> CwiseSignReturnType;
20typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> CwiseInverseReturnType;
21
27EIGEN_DOC_UNARY_ADDONS(cwiseAbs,absolute value)
33cwiseAbs() const { return CwiseAbsReturnType(derived()); }
34
40EIGEN_DOC_UNARY_ADDONS(cwiseAbs2,squared absolute value)
46cwiseAbs2() const { return CwiseAbs2ReturnType(derived()); }
47
58inline const CwiseSqrtReturnType
59cwiseSqrt() const { return CwiseSqrtReturnType(derived()); }
60
69inline const CwiseSignReturnType
70cwiseSign() const { return CwiseSignReturnType(derived()); }
71
72
83inline const CwiseInverseReturnType
84cwiseInverse() const { return CwiseInverseReturnType(derived()); }
85
92
94inline const CwiseArgReturnType
95cwiseArg() const { return CwiseArgReturnType(derived()); }
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
Definition ArrayBase.h:91
EIGEN_DEVICE_FUNC const SignReturnType sign() const
Definition ArrayCwiseUnaryOps.h:219
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
Definition ArrayCwiseUnaryOps.h:66
EIGEN_DEVICE_FUNC const SquareReturnType square() const
Definition ArrayCwiseUnaryOps.h:425
EIGEN_DEVICE_FUNC const InverseReturnType inverse() const
Definition ArrayCwiseUnaryOps.h:411
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
EIGEN_DEVICE_FUNC const CwiseSqrtReturnType cwiseSqrt() const
Definition MatrixCwiseUnaryOps.h:59
CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > CwiseAbsReturnType
Definition MatrixCwiseUnaryOps.h:15
EIGEN_DEVICE_FUNC const CwiseArgReturnType cwiseArg() const
Definition MatrixCwiseUnaryOps.h:95
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbs2ReturnType cwiseAbs2() const
Definition MatrixCwiseUnaryOps.h:46
CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > CwiseArgReturnType
Definition MatrixCwiseUnaryOps.h:17
CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > CwiseAbs2ReturnType
Definition MatrixCwiseUnaryOps.h:16
EIGEN_DEVICE_FUNC const CwiseInverseReturnType cwiseInverse() const
Definition MatrixCwiseUnaryOps.h:84
CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > CwiseSignReturnType
Definition MatrixCwiseUnaryOps.h:19
EIGEN_DEVICE_FUNC const CwiseSignReturnType cwiseSign() const
Definition MatrixCwiseUnaryOps.h:70
CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > CwiseSqrtReturnType
Definition MatrixCwiseUnaryOps.h:18
CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > CwiseInverseReturnType
Definition MatrixCwiseUnaryOps.h:20
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbsReturnType cwiseAbs() const
Definition MatrixCwiseUnaryOps.h:33