pub struct Cpu;
Expand description

The CPU device

Trait Implementations

Allocates using alloc_zeroed.

Applies f to each element of l and r, where r is broadcasted to be the same size as l.

Applies f to each element of out, l, and r, where r is broadcasted to be the same size as out and l.

Applies f to each element of out, l, and r, where out is broadcasted to be the same size as l and r.

Applies f to each element of l and r, where r is broadcasted to be the same size as l.

Applies f to each element of out, l, and r, where r is broadcasted to be the same size as out and l.

Applies f to each element of out, l, and r, where out is broadcasted to be the same size as l and r.

Applies f to each element of l and r, where r is broadcasted to be the same size as l.

Applies f to each element of out, l, and r, where r is broadcasted to be the same size as out and l.

Applies f to each element of out, l, and r, where out is broadcasted to be the same size as l and r.

Allocate a new T and then store f applied to t in the new T. Uses ForEachElement::foreach_mr.

Computes lhs += rhs, using ForEachElement::foreach_mr.

Computes lhs += rhs, where rhs’s last dimension is broadcasted. Uses BroadcastForEach::foreach_mb

Computes lhs -= rhs using ForEachElement::foreach_mr

Computes lhs -= rhs, where rhs’s last dimension is broadcasted. Uses BroadcastForEach::foreach_mb

Computes out += lhs * rhs using ForEachElement::foreach_mrr.

Allocate a new T and then store f applied to t in the new T. Uses ForEachElement::foreach_mr.

Computes lhs += rhs, using ForEachElement::foreach_mr.

Computes lhs += rhs, where rhs’s last dimension is broadcasted. Uses BroadcastForEach::foreach_mb

Computes lhs -= rhs using ForEachElement::foreach_mr

Computes lhs -= rhs, where rhs’s last dimension is broadcasted. Uses BroadcastForEach::foreach_mb

Computes out += lhs * rhs using ForEachElement::foreach_mrr.

Mutate elements of a by applying f to all elements of a.

Mutate elements of a and b by applying f to all elements of (a, b). mm stands for mut mut Read more

Mutate elements of a by applying f to all elements of (a, b). mr stands for mut ref Read more

Mutate elements of a, b, and c by applying f to all elements of (a, b, c). mmm stands for mut mut mut Read more

Mutate elements of a by applying f to all elements of (a, b, c). mrr stands for mut ref ref Read more

Mutate elements of a by applying f to all elements of a.

Mutate elements of a and b by applying f to all elements of (a, b). mm stands for mut mut Read more

Mutate elements of a by applying f to all elements of (a, b). mr stands for mut ref Read more

Mutate elements of a, b, and c by applying f to all elements of (a, b, c). mmm stands for mut mut mut Read more

Mutate elements of a by applying f to all elements of (a, b, c). mrr stands for mut ref ref Read more

Applies f to the last dimension of l, where r is broadcasted to be the same size as l.

Applies f to the last dimension of l, where out and r are broadcasted to be the same size as l.

Applies f to the last dimension of l, where r is broadcasted to be the same size as l.

Applies f to the last dimension of l, where out and r are broadcasted to be the same size as l.

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.

Should always be Self

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.