Type Definition nalgebra::base::MatrixSliceMutMN
source · [−]pub type MatrixSliceMutMN<'a, T, R, C, RStride = U1, CStride = R> = Matrix<T, R, C, SliceStorageMut<'a, T, R, C, RStride, CStride>>;
Expand description
A column-major matrix slice with R
rows and C
columns.
Because this is an alias, not all its methods are listed here. See the Matrix
type too.
Implementations
sourceimpl<'a, T: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim> MatrixSliceMutMN<'a, T, R, C, RStride, CStride>
impl<'a, T: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim> MatrixSliceMutMN<'a, T, R, C, RStride, CStride>
sourcepub unsafe fn from_slice_with_strides_generic_unchecked(
data: &'a mut [T],
start: usize,
nrows: R,
ncols: C,
rstride: RStride,
cstride: CStride
) -> Self
pub unsafe fn from_slice_with_strides_generic_unchecked(
data: &'a mut [T],
start: usize,
nrows: R,
ncols: C,
rstride: RStride,
cstride: CStride
) -> Self
Creates, without bound-checking, a mutable matrix slice from an array and with dimensions and strides specified by generic types instances.
This method is unsafe because the input data array is not checked to contain enough elements.
The generic types R
, C
, RStride
, CStride
can either be type-level integers or integers wrapped with Dynamic::new()
.
sourcepub fn from_slice_with_strides_generic(
data: &'a mut [T],
nrows: R,
ncols: C,
rstride: RStride,
cstride: CStride
) -> Self
pub fn from_slice_with_strides_generic(
data: &'a mut [T],
nrows: R,
ncols: C,
rstride: RStride,
cstride: CStride
) -> Self
Creates a mutable matrix slice from an array and with dimensions and strides specified by generic types instances.
Panics if the input data array dose not contain enough elements.
The generic types R
, C
, RStride
, CStride
can either be type-level integers or integers wrapped with Dynamic::new()
.
sourceimpl<'a, T: Scalar, R: Dim, C: Dim> MatrixSliceMutMN<'a, T, R, C>
impl<'a, T: Scalar, R: Dim, C: Dim> MatrixSliceMutMN<'a, T, R, C>
sourcepub unsafe fn from_slice_generic_unchecked(
data: &'a mut [T],
start: usize,
nrows: R,
ncols: C
) -> Self
pub unsafe fn from_slice_generic_unchecked(
data: &'a mut [T],
start: usize,
nrows: R,
ncols: C
) -> Self
Creates, without bound-checking, a mutable matrix slice from an array and with dimensions specified by generic types instances.
This method is unsafe because the input data array is not checked to contain enough elements.
The generic types R
and C
can either be type-level integers or integers wrapped with Dynamic::new()
.
sourcepub fn from_slice_generic(data: &'a mut [T], nrows: R, ncols: C) -> Self
pub fn from_slice_generic(data: &'a mut [T], nrows: R, ncols: C) -> Self
Creates a mutable matrix slice from an array and with dimensions and strides specified by generic types instances.
Panics if the input data array dose not contain enough elements.
The generic types R
and C
can either be type-level integers or integers wrapped with Dynamic::new()
.
sourceimpl<'a, T: Scalar, R: DimName, C: DimName> MatrixSliceMutMN<'a, T, R, C>
impl<'a, T: Scalar, R: DimName, C: DimName> MatrixSliceMutMN<'a, T, R, C>
sourcepub fn from_slice(data: &'a mut [T]) -> Self
pub fn from_slice(data: &'a mut [T]) -> Self
Creates a new mutable matrix slice from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_unchecked(data: &'a mut [T], start: usize) -> Self
pub unsafe fn from_slice_unchecked(data: &'a mut [T], start: usize) -> Self
Creates, without bound checking, a new mutable matrix slice from the given data array.
sourceimpl<'a, T: Scalar, R: DimName, C: DimName> MatrixSliceMutMN<'a, T, R, C, Dynamic, Dynamic>
impl<'a, T: Scalar, R: DimName, C: DimName> MatrixSliceMutMN<'a, T, R, C, Dynamic, Dynamic>
sourcepub fn from_slice_with_strides_mut(
data: &'a mut [T],
rstride: usize,
cstride: usize
) -> Self
pub fn from_slice_with_strides_mut(
data: &'a mut [T],
rstride: usize,
cstride: usize
) -> Self
Creates a new mutable matrix slice with the specified strides from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
rstride: usize,
cstride: usize
) -> Self
pub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
rstride: usize,
cstride: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice with the specified strides from the given data array.
sourceimpl<'a, T: Scalar, R: DimName> MatrixSliceMutMN<'a, T, R, Dynamic>
impl<'a, T: Scalar, R: DimName> MatrixSliceMutMN<'a, T, R, Dynamic>
sourcepub fn from_slice(data: &'a mut [T], ncols: usize) -> Self
pub fn from_slice(data: &'a mut [T], ncols: usize) -> Self
Creates a new mutable matrix slice from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
ncols: usize
) -> Self
pub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
ncols: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice from the given data array.
sourceimpl<'a, T: Scalar, R: DimName> MatrixSliceMutMN<'a, T, R, Dynamic, Dynamic, Dynamic>
impl<'a, T: Scalar, R: DimName> MatrixSliceMutMN<'a, T, R, Dynamic, Dynamic, Dynamic>
sourcepub fn from_slice_with_strides_mut(
data: &'a mut [T],
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
pub fn from_slice_with_strides_mut(
data: &'a mut [T],
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
Creates a new mutable matrix slice with the specified strides from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
pub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice with the specified strides from the given data array.
sourceimpl<'a, T: Scalar, C: DimName> MatrixSliceMutMN<'a, T, Dynamic, C>
impl<'a, T: Scalar, C: DimName> MatrixSliceMutMN<'a, T, Dynamic, C>
sourcepub fn from_slice(data: &'a mut [T], nrows: usize) -> Self
pub fn from_slice(data: &'a mut [T], nrows: usize) -> Self
Creates a new mutable matrix slice from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize
) -> Self
pub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice from the given data array.
sourceimpl<'a, T: Scalar, C: DimName> MatrixSliceMutMN<'a, T, Dynamic, C, Dynamic, Dynamic>
impl<'a, T: Scalar, C: DimName> MatrixSliceMutMN<'a, T, Dynamic, C, Dynamic, Dynamic>
sourcepub fn from_slice_with_strides_mut(
data: &'a mut [T],
nrows: usize,
rstride: usize,
cstride: usize
) -> Self
pub fn from_slice_with_strides_mut(
data: &'a mut [T],
nrows: usize,
rstride: usize,
cstride: usize
) -> Self
Creates a new mutable matrix slice with the specified strides from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
rstride: usize,
cstride: usize
) -> Self
pub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
rstride: usize,
cstride: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice with the specified strides from the given data array.
sourceimpl<'a, T: Scalar> MatrixSliceMutMN<'a, T, Dynamic, Dynamic>
impl<'a, T: Scalar> MatrixSliceMutMN<'a, T, Dynamic, Dynamic>
sourcepub fn from_slice(data: &'a mut [T], nrows: usize, ncols: usize) -> Self
pub fn from_slice(data: &'a mut [T], nrows: usize, ncols: usize) -> Self
Creates a new mutable matrix slice from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
ncols: usize
) -> Self
pub unsafe fn from_slice_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
ncols: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice from the given data array.
sourceimpl<'a, T: Scalar> MatrixSliceMutMN<'a, T, Dynamic, Dynamic, Dynamic, Dynamic>
impl<'a, T: Scalar> MatrixSliceMutMN<'a, T, Dynamic, Dynamic, Dynamic, Dynamic>
sourcepub fn from_slice_with_strides_mut(
data: &'a mut [T],
nrows: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
pub fn from_slice_with_strides_mut(
data: &'a mut [T],
nrows: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
Creates a new mutable matrix slice with the specified strides from the given data array.
Panics if data
does not contain enough elements.
sourcepub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
pub unsafe fn from_slice_with_strides_unchecked(
data: &'a mut [T],
start: usize,
nrows: usize,
ncols: usize,
rstride: usize,
cstride: usize
) -> Self
Creates, without bound checking, a new mutable matrix slice with the specified strides from the given data array.