pub struct ModalSet { /* private fields */ }Implementations§
Source§impl ModalSet
impl ModalSet
pub fn new( modes: Vec<ModalRecord>, layout: ShapeLayout, ) -> Result<Self, ModalSetError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn layout(&self) -> ShapeLayout
pub fn modes(&self) -> &[ModalRecord]
pub fn iter(&self) -> impl Iterator<Item = &ModalRecord>
pub fn freqs(&self) -> Vec<f64>
pub fn weights(&self) -> Vec<f64>
pub fn shape(&self, index: usize) -> Option<&[f64]>
pub fn shape_value( &self, mode_index: usize, node_index: usize, component_index: usize, ) -> Result<f64, ModalSetError>
pub fn filter_freq_min(&self, f_min: f64) -> Result<Self, ModalSetError>
pub fn subset(&self, indices: &[usize]) -> Result<Self, ModalSetError>
pub fn sorted_by_freq(&self) -> Result<Self, ModalSetError>
pub fn merge(&self, other: &Self) -> Result<Self, ModalSetError>
pub fn normalized_shapes_l2(&self) -> Result<Self, ModalSetError>
pub fn component(&self, index: usize) -> Result<Self, ModalSetError>
pub fn components(&self, indices: &[usize]) -> Result<Self, ModalSetError>
pub fn with_gammas( &self, gammas: &[f64], ) -> Result<DampedModalSet, ModalSetError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModalSet
impl RefUnwindSafe for ModalSet
impl Send for ModalSet
impl Sync for ModalSet
impl Unpin for ModalSet
impl UnsafeUnpin for ModalSet
impl UnwindSafe for ModalSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more