Skip to content

Commit

Permalink
Update #[inline].
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouven Spreckels committed Jun 17, 2020
1 parent 112e439 commit 384d401
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ where
DefaultAllocator: Allocator<N, DimNameDiff<D, U1>>,
{
/// Inertial frame of reference with velocity $u^\mu$.
#[inline]
pub fn from_velocity<R, C>(u: &MatrixMN<N, R, C>) -> Self
where
R: DimName,
Expand Down Expand Up @@ -798,7 +797,6 @@ where
}

/// Velocity $u^\mu$.
#[inline]
pub fn velocity(&self) -> VectorN<N, D>
where
DefaultAllocator: Allocator<N, D>
Expand Down Expand Up @@ -943,6 +941,7 @@ where
ShapeConstraint: SameNumberOfColumns<C, U1>,
DefaultAllocator: Allocator<N, R, C> + Allocator<N, DimNameDiff<R, U1>>,
{
#[inline]
fn from(u: MatrixMN<N, R, C>) -> Self {
u.frame()
}
Expand All @@ -954,6 +953,7 @@ where
D: DimNameSub<U1>,
DefaultAllocator: Allocator<N, DimNameDiff<D, U1>> + Allocator<N, D>,
{
#[inline]
fn from(frame: FrameN<N, D>) -> Self {
frame.velocity()
}
Expand All @@ -967,6 +967,7 @@ where
{
type Output = Self;

#[inline]
fn neg(mut self) -> Self::Output {
self.zeta_sinh = -self.zeta_sinh;
self
Expand All @@ -981,6 +982,7 @@ where
{
type Output = Self;

#[inline]
fn add(self, rhs: Self) -> Self::Output {
self.compose(rhs)
}
Expand Down

0 comments on commit 384d401

Please sign in to comment.