Expand description
Contains the core of feanor-math
’s (currently) minimalistic approach to matrices. In particular,
we use matrix::Submatrix
and matrix::SubmatrixMut
for matrices that don’t own their data.
Modules§
- matrix_
compare - Defines a very general way of comparing anything that can be interpreted as a
matrix in
matrix_compare::MatrixCompare
. Used solely incrate::assert_matrix_eq
, with tests being the primary use case. - transform
- Contains the trait
transform::TransformTarget
, for “consumers” of elementary matrix operations.
Structs§
- AsFirst
Element - Represents a contiguous batch of
T
s by their first element. In other words, a pointer to the batch is equal to a pointer to the first value. - Column
- An immutable view on a column of a matrix
Submatrix
. - Column
Mut - A mutable view on a column of a matrix
SubmatrixMut
. - Column
MutIter - Iterator over mutable references to the entries of a column
of a matrix
SubmatrixMut
. - Deref
Array - Newtype for
[T; SIZE]
that implementsDeref<Target = [T]>
so that it can be used to store columns and access them throughSubmatrix
. - Owned
Matrix - A matrix that owns its elements.
- Submatrix
- Immutable view on a matrix that stores elements of type
T
. - Submatrix
Mut - Mutable view on a matrix that stores elements of type
T
. - Submatrix
Raw unstable-enable
- A submatrix that works on raw pointers, thus does not care about mutability and borrowing. It already takes care about bounds checking and indexing. Nevertheless, it is quite difficult to use this correctly, best not use it at all. I mainly made it public to allow doctests.
- Transposable
Submatrix unstable-enable
- Availability
- Transposable
Submatrix Mut unstable-enable
- Availability
Traits§
- AsPointer
ToSlice - Trait for objects that can be considered a contiguous part of memory. In particular,
the pointer returned by
get_pointer()
should be interpreted as the pointer to the first element of a range of elements of typeT
(basically a C-style array). In some sense, this is thus the unsafe equivalent ofDeref<Target = [T]>
.
Functions§
- format_
matrix unstable-enable
- Availability