Trait ha_ndarray::NDArrayTrig
source · pub trait NDArrayTrig: NDArray + Sized {
type Output: Access<<Self::DType as CType>::Float>;
// Required methods
fn sin(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn asin(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn sinh(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn cos(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn acos(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn cosh(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn tan(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn atan(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
fn tanh(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>;
}
Expand description
Array trigonometry methods
Required Associated Types§
Required Methods§
sourcefn sin(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn sin( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new sine operation.
sourcefn asin(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn asin( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new arcsine operation.
sourcefn sinh(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn sinh( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new hyperbolic sine operation.
sourcefn cos(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn cos( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new cos operation.
sourcefn acos(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn acos( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new arccosine operation.
sourcefn cosh(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn cosh( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new hyperbolic cosine operation.
sourcefn tan(
self
) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
fn tan( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>
Construct a new tangent operation.
Object Safety§
This trait is not object safe.