Add log2 operation to TensorBase

This commit is contained in:
Eugene Zhulenev 2021-03-04 00:13:36 +00:00
parent 9a663973b4
commit a6601070f2

View File

@ -297,6 +297,12 @@ class TensorBase<Derived, ReadOnlyAccessors>
return unaryExpr(internal::scalar_log1p_op<Scalar>());
}
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const TensorCwiseUnaryOp<internal::scalar_log2_op<Scalar>, const Derived>
log2() const {
return unaryExpr(internal::scalar_log2_op<Scalar>());
}
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const TensorCwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived>
abs() const {