Struct faer_core::ColMut

source ·
pub struct ColMut<'a, T> { /* private fields */ }
Expand description

Mutable column vector view with general row stride.

For usage examples, see MatRef.

Implementations

Returns a mutable column vector slice from the given arguments.
ptr: pointer to the first element of the column vector.
ncols: number of columns of the column vector.
col_stride: offset between the first elements of two successive columns in the column vector.

Safety

ptr must be non null and properly aligned for type T.
For each i < nrows,
ptr.offset(i as isize * row_stride) must point to a valid initialized object of type T, unless memory pointing to that address is never read.
Additionally, when i != 0, this pointer is never equal to ptr (no self aliasing).
The referenced memory must not be mutated during the lifetime 'a.

Returns a mutable pointer to the first (top) element of the column vector.

Returns the number of rows of the column vector.

Returns the number of columns of the column vector. Always returns 1.

Returns the offset between the first elements of two successive rows in the column vector.

Returns a mutable pointer to the element at position (i, 0) in the column vector.

Returns a mutable pointer to the element at position (i, 0) in the column vector, assuming it falls within its bounds with no bound checks.

Safety

Requires that i < self.nrows().

Otherwise, the behavior is undefined.

Returns a mutable pointer to the element at position (i, 0) in the column vector, while asserting that it falls within its bounds.

Panics

Requires that i < self.nrows().

Otherwise, it panics.

Splits the column vector into two parts in the following order: top, bottom.

Safety

Requires that i <= self.nrows().

Otherwise, the behavior is undefined.

Splits the column vector into two parts in the following order: top, bottom.

Panics

Requires that i <= self.nrows().

Otherwise, it panics.

Returns a mutable reference to the element at position (i, 0), with no bound checks.

Safety

Requires i < self.nrows().

Otherwise, the behavior is undefined.

Returns a mutable reference to the element at position (i, 0), or panics if the index is out of bounds.

Returns an equivalent matrix view over the same data.

Returns the transpose of self.

Returns a thin wrapper that can be used to execute coefficientwise operations on matrices.

Trait Implementations

Formats the value using the given formatter. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.