Skip to main content

VectorTranscendental

Trait VectorTranscendental 

Source
pub trait VectorTranscendental<T, const N: usize>: Vector<T, N>
where T: Transcendental,
{ // Required methods fn sqrt(&self) -> Self; fn exp(&self) -> Self; fn ln(&self) -> Self; fn sin(&self) -> Self; fn cos(&self) -> Self; fn tan(&self) -> Self; }
Expand description

Trait for vector types with transcendental operations.

Only available for T: Transcendental (f32, f64).

Required Methods§

Source

fn sqrt(&self) -> Self

Lane-wise square root.

Source

fn exp(&self) -> Self

Lane-wise exponential (e^x).

Source

fn ln(&self) -> Self

Lane-wise natural logarithm.

Source

fn sin(&self) -> Self

Lane-wise sine (input in radians).

Source

fn cos(&self) -> Self

Lane-wise cosine (input in radians).

Source

fn tan(&self) -> Self

Lane-wise tangent (input in radians).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§