Eigne Matrix Class Library
Dependents: MPC_current_control HydraulicControlBoard_SW AHRS Test_ekf ... more
src/plugins/MatrixCwiseUnaryOps.h@1:3b8049da21b8, 2019-09-24 (annotated)
- Committer:
- jsoh91
- Date:
- Tue Sep 24 00:18:23 2019 +0000
- Revision:
- 1:3b8049da21b8
- Parent:
- 0:13a5d365ba16
ignore and revise some of error parts
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ykuroda | 0:13a5d365ba16 | 1 | // This file is part of Eigen, a lightweight C++ template library |
ykuroda | 0:13a5d365ba16 | 2 | // for linear algebra. |
ykuroda | 0:13a5d365ba16 | 3 | // |
ykuroda | 0:13a5d365ba16 | 4 | // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> |
ykuroda | 0:13a5d365ba16 | 5 | // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> |
ykuroda | 0:13a5d365ba16 | 6 | // |
ykuroda | 0:13a5d365ba16 | 7 | // This Source Code Form is subject to the terms of the Mozilla |
ykuroda | 0:13a5d365ba16 | 8 | // Public License v. 2.0. If a copy of the MPL was not distributed |
ykuroda | 0:13a5d365ba16 | 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
ykuroda | 0:13a5d365ba16 | 10 | |
ykuroda | 0:13a5d365ba16 | 11 | // This file is a base class plugin containing matrix specifics coefficient wise functions. |
ykuroda | 0:13a5d365ba16 | 12 | |
ykuroda | 0:13a5d365ba16 | 13 | /** \returns an expression of the coefficient-wise absolute value of \c *this |
ykuroda | 0:13a5d365ba16 | 14 | * |
ykuroda | 0:13a5d365ba16 | 15 | * Example: \include MatrixBase_cwiseAbs.cpp |
ykuroda | 0:13a5d365ba16 | 16 | * Output: \verbinclude MatrixBase_cwiseAbs.out |
ykuroda | 0:13a5d365ba16 | 17 | * |
ykuroda | 0:13a5d365ba16 | 18 | * \sa cwiseAbs2() |
ykuroda | 0:13a5d365ba16 | 19 | */ |
ykuroda | 0:13a5d365ba16 | 20 | EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> |
ykuroda | 0:13a5d365ba16 | 21 | cwiseAbs() const { return derived(); } |
ykuroda | 0:13a5d365ba16 | 22 | |
ykuroda | 0:13a5d365ba16 | 23 | /** \returns an expression of the coefficient-wise squared absolute value of \c *this |
ykuroda | 0:13a5d365ba16 | 24 | * |
ykuroda | 0:13a5d365ba16 | 25 | * Example: \include MatrixBase_cwiseAbs2.cpp |
ykuroda | 0:13a5d365ba16 | 26 | * Output: \verbinclude MatrixBase_cwiseAbs2.out |
ykuroda | 0:13a5d365ba16 | 27 | * |
ykuroda | 0:13a5d365ba16 | 28 | * \sa cwiseAbs() |
ykuroda | 0:13a5d365ba16 | 29 | */ |
ykuroda | 0:13a5d365ba16 | 30 | EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> |
ykuroda | 0:13a5d365ba16 | 31 | cwiseAbs2() const { return derived(); } |
ykuroda | 0:13a5d365ba16 | 32 | |
ykuroda | 0:13a5d365ba16 | 33 | /** \returns an expression of the coefficient-wise square root of *this. |
ykuroda | 0:13a5d365ba16 | 34 | * |
ykuroda | 0:13a5d365ba16 | 35 | * Example: \include MatrixBase_cwiseSqrt.cpp |
ykuroda | 0:13a5d365ba16 | 36 | * Output: \verbinclude MatrixBase_cwiseSqrt.out |
ykuroda | 0:13a5d365ba16 | 37 | * |
ykuroda | 0:13a5d365ba16 | 38 | * \sa cwisePow(), cwiseSquare() |
ykuroda | 0:13a5d365ba16 | 39 | */ |
ykuroda | 0:13a5d365ba16 | 40 | inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> |
ykuroda | 0:13a5d365ba16 | 41 | cwiseSqrt() const { return derived(); } |
ykuroda | 0:13a5d365ba16 | 42 | |
ykuroda | 0:13a5d365ba16 | 43 | /** \returns an expression of the coefficient-wise inverse of *this. |
ykuroda | 0:13a5d365ba16 | 44 | * |
ykuroda | 0:13a5d365ba16 | 45 | * Example: \include MatrixBase_cwiseInverse.cpp |
ykuroda | 0:13a5d365ba16 | 46 | * Output: \verbinclude MatrixBase_cwiseInverse.out |
ykuroda | 0:13a5d365ba16 | 47 | * |
ykuroda | 0:13a5d365ba16 | 48 | * \sa cwiseProduct() |
ykuroda | 0:13a5d365ba16 | 49 | */ |
ykuroda | 0:13a5d365ba16 | 50 | inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> |
ykuroda | 0:13a5d365ba16 | 51 | cwiseInverse() const { return derived(); } |