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§

source

type Output: Access<<Self::DType as CType>::Float>

Required Methods§

source

fn sin( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new sine operation.

source

fn asin( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new arcsine operation.

source

fn sinh( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new hyperbolic sine operation.

source

fn cos( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new cos operation.

source

fn acos( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new arccosine operation.

source

fn cosh( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new hyperbolic cosine operation.

source

fn tan( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new tangent operation.

source

fn atan( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new arctangent operation.

source

fn tanh( self ) -> Result<Array<<Self::DType as CType>::Float, Self::Output, Self::Platform>, Error>

Construct a new hyperbolic tangent operation.

Object Safety§

This trait is not object safe.

Implementors§