Trait basic_dsp_vector::Vector [−][src]
pub trait Vector<T>: MetaData + ResizeOps + FloatIndex<RangeFull, Output = [T]> + FloatIndex<Range<usize>> + FloatIndex<RangeFrom<usize>, Output = [T]> + FloatIndex<RangeTo<usize>> + FloatIndex<usize> where
T: RealNumber, { fn delta(&self) -> T; fn set_delta(&mut self, delta: T); fn len(&self) -> usize; fn is_empty(&self) -> bool; fn points(&self) -> usize; fn get_multicore_settings(&self) -> &MultiCoreSettings; fn set_multicore_settings(&mut self, settings: MultiCoreSettings); fn alloc_len(&self) -> usize; }
Expand description
A trait for vector types.
Required methods
The x-axis delta. If domain is time domain then delta is in [s],
in frequency domain delta is in [Hz].
Sets the x-axis delta. If domain is time domain then delta is in [s],
in frequency domain delta is in [Hz].
The number of valid elements in the vector. This can be changed
with the Resize trait.
The number of valid points. If the vector is complex then every valid point consists of two floating point numbers, while for real vectors every point only consists of one floating point number.
fn get_multicore_settings(&self) -> &MultiCoreSettings[src]
fn get_multicore_settings(&self) -> &MultiCoreSettings[src]Gets the multi core settings which determine how the work is split between several cores if the amount of data gets larger.
fn set_multicore_settings(&mut self, settings: MultiCoreSettings)[src]
fn set_multicore_settings(&mut self, settings: MultiCoreSettings)[src]Sets the multi core settings which determine how the work is split between several cores if the amount of data gets larger.
Implementors
impl<S, T, N, D> Vector<T> for DspVec<S, T, N, D> where
S: ToSlice<T>,
T: RealNumber,
N: NumberSpace,
D: Domain, [src]
impl<S, T, N, D> Vector<T> for DspVec<S, T, N, D> where
S: ToSlice<T>,
T: RealNumber,
N: NumberSpace,
D: Domain, [src]