Struct lowdim::Matrix2d[][src]

pub struct Matrix2d<S: Integer> { /* fields omitted */ }
Expand description

A two-dimensional discrete matrix.

Implementations

Creates a new 2d matrix from its values by rows.

Creates a new 2d matrix from a function.

Example
let m = Matrix2d::with(|i, j| i64::try_from(3 * i + j).unwrap());
assert_eq!(Matrix2d::new(0, 1, 3, 4), m);

Returns a row vector of a matrix.

Returns a column vector of a matrix.

Returns the diagonal vector of a matrix.

Returns the determinant of a matrix.

Creates a matrix for a left rotation by a right angle.

Creates a matrix for a rotation by 180 degrees.

Creates a matrix for a right rotation by a right angle.

Creates a matrix for a reflection on the x-axis.

Creates a matrix for a reflection on the y-axis.

Creates a matrix for a reflection on the x=y diagonal.

Creates a matrix for a reflection on the -x=y anti-diagonal.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The corresponding vector type. Read more

Creates a new matrix from a function. Read more

Creates a zero matrix.

Creates a unit matrix.

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.