Struct afarray::ArrayExt[][src]

pub struct ArrayExt<T: HasAfEnum>(_);
Expand description

A wrapper around af::Array which defines common operations.

Implementations

Construct a new ArrayExt with the given value and length.

Concatenate two instances of ArrayExt<T>.

Return true if the elements of this ArrayExt are in sorted order.

Cast the values of this ArrayExt into a destination type D.

Get the values specified by the given af::Indexer.

Get the value at the given index.

Deconstruct this ArrayExt<T> into its underlying af::Array.

Return a slice of this ArrayExt.

Panics: if end is out of bounds

Sort this ArrayExt.

Return a sorted copy of this ArrayExt.

Split this ArrayExt<T> into two new instances at the given pivot.

Return only the unique values from this ArrayExt.

Pass true for sorted if this ArrayExt is known to be in sorted order.

Logical not.

Logical and.

Logical or.

Logical xor.

Get the real component of this array.

Get the imaginary component of this array.

Get the real component of this array.

Get the imaginary component of this array.

Construct a new ArrayExt<u64> with elements start..end.

Trait Implementations

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

Borrow this instance as an af::Array.

Borrow this instance as a a mutable af::Array.

Cast this instance into an af::Array with type T.

How many elements are in this ArrayInstance.

Get the values specified by the given af::Indexer.

Set the values specified by the given af::Indexer to the corresponding values in T.

Set the value at the specified index to value.

Copy the data in this af::Array into a new Vec.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Calculate the element-wise absolute value.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Returns true if all elements are nonzero.

Returns true if any element is nonzero.

Element-wise check for infinite values.

Element-wise check for non-numeric (NaN) values.

Element-wise equality.

Element-wise greater-than comparison.

Element-wise greater-or-equal comparison

Element-wise less-than comparison.

Element-wise less-or-equal comparison.

Element-wise inequality.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

Calculate the cumulative product.

Calculate the cumulative sum.

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

Formats the value using the given formatter. 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 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.

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

Take ownership of this value and serialize it into the given encoder.

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

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

Serialize this value into the given Serde serializer. 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

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

Serialize this value into the given encoder.

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.

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

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.