add tan function in Array world

This commit is contained in:
Jason Newton
2011-02-03 14:34:40 +01:00
parent 1eae6d0fb9
commit d028262e06
4 changed files with 40 additions and 0 deletions

View File

@@ -93,6 +93,20 @@ sin() const
}
/** \returns an expression of the coefficient-wise tan of *this.
*
* Example: \include Cwise_tan.cpp
* Output: \verbinclude Cwise_tan.out
*
* \sa cos(), sin()
*/
inline const CwiseUnaryOp<internal::scalar_tan_op<Scalar>, Derived>
tan() const
{
return derived();
}
/** \returns an expression of the coefficient-wise power of *this to the given exponent.
*
* Example: \include Cwise_pow.cpp