Struct hotg_rune_core::Tensor[][src]

pub struct Tensor<T> { /* fields omitted */ }
Expand description

A multidimensional array with copy-on-write semantics.

Examples

Implementations

Get the Tensor’s dimensions.

The number of dimensions this Tensor has.

Get an immutable reference to the underlying elements in this Tensor.

Get a mutable reference to the underlying elements in this Tensor.

Create a new Tensor by applying a function to every element in the current tensor.

This is often an expensive operation.

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

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Get an array containing the Shape for each Tensor in this tuple.

Get an array containing pointers to the elements of each Tensor in this tuple. Read more

Create a new set of empty tensors with the specified shape. Read more

Get a set of mutable pointers into each tensor’s backing buffer.

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.