Enum afarray::Array

source ·
pub enum Array {
    Bool(ArrayExt<bool>),
    C32(ArrayExt<Complex<f32>>),
    C64(ArrayExt<Complex<f64>>),
    F32(ArrayExt<f32>),
    F64(ArrayExt<f64>),
    I16(ArrayExt<i16>),
    I32(ArrayExt<i32>),
    I64(ArrayExt<i64>),
    U8(ArrayExt<u8>),
    U16(ArrayExt<u16>),
    U32(ArrayExt<u32>),
    U64(ArrayExt<u64>),
}
Expand description

A generic one-dimensional array which supports all variants of NumberType.

Variants§

Implementations§

Cast the values of this array into an ArrayExt<T>.

Concatenate two Arrays.

Construct a new Array with the given constant value and length.

Construct a new Array with a random normal distribution.

Construct a new Array with a uniform random distribution.

The NumberType of this Array.

Cast into an Array of a different NumberType.

Copy the contents of this Array into a new Vec.

Calculate the element-wise absolute value.

Returns true if all elements of this Array are nonzero.

Returns true if any element of this Array is nonzero.

Element-wise logical and.

Element-wise logical and, relative to a constant other.

Find the maximum value in this Array and its offset.

Element-wise equality comparison.

Element-wise equality comparison.

Raise e to the power of self.

Element-wise greater-than comparison.

Element-wise greater-than comparison.

Element-wise greater-or-equal comparison.

Element-wise greater-than-or-equal comparison.

Element-wise check for infinite values.

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

Compute the natural log of this Array.

Compute the logarithm of this Array with respect to the given base.

Compute the logarithm of this Array with respect to the given constant base.

Element-wise less-than comparison.

Element-wise less-than comparison.

Element-wise less-or-equal comparison.

Element-wise less-than-or-equal comparison.

Element-wise inequality comparison.

Element-wise not-equal comparison.

Element-wise logical not.

Element-wise logical or.

Element-wise logical or, relative to a constant other.

Find the maximum value of each stride of this Array

Find the maximum value of each stride of this Array

Compute the product of each stride of this Array

Compute the sum of each stride of a single block

Find the maximum element in this Array.

Find the maximum element in this Array.

Calculate the cumulative product of this Array.

Calculate the cumulative sum of this Array.

The number of elements in this Array.

Get the value at the specified index.

Get the values at the specified coordinates.

Return this Array raised to the power of other.

Return this Array raised to the power of other.

Round this Array to the nearest integer, element-wise

Set the values at the specified coordinates to the corresponding values in other.

Set the value at the specified coordinate to value.

Return a slice of this Array.

Compute the indices needed to sort this Array.

Sort this Array in-place.

Split this Array into two new instances at the given pivot.

Element-wise logical xor.

Element-wise logical xor, relative to a constant other.

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
Performs the += operation. Read more
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Borrow this instance as an instance of T if possible.
Borrow this instance mutably as an instance of T if possible.
Convert this instance into an instance of T if possible.
Cast an instance of T into an instance of Self.
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 /= operation. Read more
Performs the /= operation. Read more
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.
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.
Determines the total size of the object. Read more
Determines how may bytes this object occupies inside the stack. Read more
Determines how many bytes this object occupies inside the heap. Read more
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
Performs the *= operation. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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
Performs the -= operation. Read more
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
Cast an instance of T into an instance of Self.
Cast an instance of Self into an instance of T.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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