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§
Sourcefn sin(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn sin(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new sine operation.
Sourcefn asin(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn asin(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new arcsine operation.
Sourcefn sinh(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn sinh(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new hyperbolic sine operation.
Sourcefn cos(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn cos(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new cos operation.
Sourcefn acos(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn acos(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new arccosine operation.
Sourcefn cosh(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn cosh(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new hyperbolic cosine operation.
Sourcefn tan(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
fn tan(self) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>
Construct a new 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.