pub struct ElementForce(/* private fields */);Expand description
An element’s local nodal force (or equivalent-load) vector, for results
recording. Its length is ElementOps::local_force_width. Heap-backed:
this is only ever used on recorder paths, never in assembly.
Implementations§
Source§impl ElementForce
impl ElementForce
pub fn from_svector<const N: usize>(v: &SVector<f64, N>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, f64> ⓘ
pub fn as_slice(&self) -> &[f64]
Sourcepub fn subtract_scaled(&mut self, factor: f64, other: &ElementForce)
pub fn subtract_scaled(&mut self, factor: f64, other: &ElementForce)
self -= factor * other, component by component.
Trait Implementations§
Source§impl Clone for ElementForce
impl Clone for ElementForce
Source§fn clone(&self) -> ElementForce
fn clone(&self) -> ElementForce
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementForce
impl Debug for ElementForce
Source§impl<const N: usize> From<Matrix<f64, Const<N>, Const<1>, ArrayStorage<f64, N, 1>>> for ElementForce
impl<const N: usize> From<Matrix<f64, Const<N>, Const<1>, ArrayStorage<f64, N, 1>>> for ElementForce
Source§impl Index<usize> for ElementForce
impl Index<usize> for ElementForce
Source§impl PartialEq for ElementForce
impl PartialEq for ElementForce
impl StructuralPartialEq for ElementForce
Auto Trait Implementations§
impl Freeze for ElementForce
impl RefUnwindSafe for ElementForce
impl Send for ElementForce
impl Sync for ElementForce
impl Unpin for ElementForce
impl UnsafeUnpin for ElementForce
impl UnwindSafe for ElementForce
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.