#[repr(transparent)]
pub struct Vector<T, const N: usize> { /* private fields */ }
Expand description

Vector of fixed size.

Implementations

Create a vector with uninitialized content.

Assume that vector content is initialized.

Initialize a vector with values from closure.

Create default vector.

Create vector which elements are filled with scalar value.

Create from array.

Convert to array.

Get a reference to underlying array.

Get a mutable reference to underlying array.

Get pointer to the first element.

Get mutable pointer to the first element.

Get reference to the elements without boundary checking.

Get mutable reference to the elements without boundary checking.

Returns iterator over vector element refrences.

Returns iterator over vector element mutable refrences.

Try to conctruct a vector from iterator. If iterator conatains less items than vector, then Err is returned.

Create vector which element value equals to its position in vector.

Call closure for each element of the vector passing it by value.

Map vector elements.

Zip two vectors into one.

Enumerate vector elements.

Unzip vector of tuples into two vectors.

Pseudo-cross product for 2D vector.

Cross product.

Cross product of first three components, fourth one is set to zero.

Trait Implementations

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

The inverse of AbsDiffEq::abs_diff_eq.

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Performs the ^= operation. Read more

Copy values along axes to get V.

Copy values along axes to get V.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create vector filled with default values.

Returns the result of the direction transformation at the specified position.

Returns the result of the normal transformation at the specified position. Read more

Returns the result of the direction transformation at the specified position.

Returns the result of the normal transformation at the specified position. Read more

Returns the result of the direction transformation at the specified position.

Returns the result of the normal transformation at the specified position. Read more

Returns the result of the direction transformation at the specified position.

Returns the result of the normal transformation at the specified position. Read more

Returns the result of the direction transformation at the specified position.

Returns the result of the normal transformation at the specified position. Read more

Formats the value using the given formatter. Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F 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

Performs the /= operation. Read more

Performs the /= operation. Read more

Dot product output type.

Perform dot product.

Dot product output type.

Perform dot product.

Dot product output type.

Perform dot product.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

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

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

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Workaround for reverse multiplication.

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

Type of the norm.

Norm of the element.

Type of the norm.

Square norm of the element.

Norm of the element.

Type of the norm.

Norm of the element.

Normalize object.

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

Outer product output type.

Perform outer product.

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

This method tests for !=.

Method which takes an iterator and generates Self from the elements by multiplying the items. 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

Performs the %= operation. Read more

Performs the %= operation. Read more

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

For given A and B returns B' and A'.

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one. Read more

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one. Read more

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one. Read more

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one. Read more

Identity transformation.

Inverse transformation.

Perform the transformation itself.

Find transformation directional derivative at specified point.

Chain two transformations into a new one. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

Sets self to the additive identity element of Self, 0.

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

Copy values along axes to get V.

Copy values along axes to get V.

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 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)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.