Struct tc_tensor::SparseTensor[][src]

pub struct SparseTensor<FD, FS, D, T, A> { /* fields omitted */ }
Expand description

A Tensor stored as a Table of Coords and [Number] values

Implementations

Consume this SparseTensor and return its accessor.

Create a new SparseTensor with the given schema

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Copy a new instance of Self from an existing instance.

Copy a new instance of Self from an existing instance.

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more

Parse this value using the given Decoder.

Return a View which can be encoded with en::IntoStream.

Return the schema of this persistent state.

Load a saved state from persistent storage.

The datatype of this Tensor

The number of dimensions of this Tensor

The shape of this Tensor

The number of elements in this Tensor

The result type of a boolean operation.

The result type of a boolean operation which may ignore right-hand values.

Logical and

Logical or

Logical xor

The result type of a boolean operation.

The result type of a boolean operation which may ignore right-hand values.

Logical and

Logical or

Logical xor

The result of a comparison operation

The result of a comparison operation which can only return a dense Tensor

Element-wise equality

Element-wise greater-than

Element-wise greater-or-equal

Element-wise less-than

Element-wise less-or-equal

Element-wise not-equal

The result of a comparison operation

The result of a comparison operation which can only return a dense Tensor

Element-wise equality

Element-wise greater-than

Element-wise greater-or-equal

Element-wise less-than

Element-wise less-or-equal

Element-wise not-equal

The type of Transaction to expect

Overwrite the slice of this Tensor given by Bounds with the given value.

The type of Transaction to expect

Overwrite the slice of this Tensor given by Bounds with the given value.

The type of Transaction to expect

Read a single value from this Tensor.

Write a single value to the slice of this Tensor with the given Bounds.

Overwrite a single element of this Tensor.

A dense representation of this Tensor

A sparse representation of this Tensor

Return a dense representation of this Tensor.

Return a sparse representation of this Tensor.

The result type of a math operation

The result type of a math operation which may ignore right-hand-side values

Add two tensors together.

Divide self by other.

Multiply two tensors together.

Subtract other from self.

The result type of a math operation

The result type of a math operation which may ignore right-hand-side values

Add two tensors together.

Divide self by other.

Multiply two tensors together.

Subtract other from self.

The type of Transaction to expect

The result type of a reduce operation

Return the product of this Tensor along the given axis.

Return the product of all elements in this Tensor.

Return the sum of this Tensor along the given axis.

Return the sum of all elements in this Tensor.

A broadcast Tensor

A type-cast Tensor

A Tensor with an expanded dimension

A Tensor slice

A transposed Tensor

Broadcast this Tensor to the given shape.

Cast this Tensor to the given dtype.

Insert a new dimension of size 1 at the given axis.

Return a slice of this Tensor with the given bounds.

Transpose this Tensor by reordering its axes according to the given permutation. If no permutation is given, the axes will be reversed. Read more

The type of Transaction to expect

The return type of a unary operation

Element-wise absolute value

Return true if all elements in this Tensor are nonzero.

Return true if any element in this Tensor is nonzero.

Element-wise logical not

Commit this transaction.

Delete any version data specific to this transaction.

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.

Performs the conversion.

Returns true if self can be cast into the target type T.

Should always be Self

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

Converts the given value to a String. Read more

Test if value can be cast into Self.

Returns Some(Self) if the source value can be cast into Self, otherwise None.

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.

Test if self can be cast into T.

Returns Some(T) if self can be cast into T, otherwise None.

Returns Ok(T) if self can be cast into T, otherwise calls on_err.

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.