Skip to main content

NDArrayTrig

Trait NDArrayTrig 

Source
pub trait NDArrayTrig: NDArray + Sized {
    type Output: Access<Self::DType>;

    // Required methods
    fn sin(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn asin(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn sinh(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn cos(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn acos(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn cosh(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn tan(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn atan(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn tanh(
        self,
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
}
Expand description

Array trigonometry methods

Required Associated Types§

Required Methods§

Source

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

Construct a new sine operation.

Source

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

Construct a new arcsine operation.

Source

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

Construct a new hyperbolic sine operation.

Source

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

Construct a new cos operation.

Source

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

Construct a new arccosine operation.

Source

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

Construct a new hyperbolic cosine operation.

Source

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

Construct a new tangent operation.

Source

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

Construct a new arctangent operation.

Source

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

Construct a new hyperbolic tangent operation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§