Struct rustlearn::array::dense::Array [] [src]

pub struct Array { /* fields omitted */ }

Basic two-dimensional dense matrix type.

Methods

impl Array
[src]

[src]

Create a rows by cols array of zeros.

[src]

Create a rows by cols array of ones.

[src]

Change the shape of the array to rows by cols.

Panics

If the number of elements implied by the new shape is different from the current number of elements.

[src]

Return the order (row-major or column-major) of the array.

[src]

Return an immutable reference to the underlying data buffer of the array.

The arrangement of the elements in that vector is dependent on whether this is a row-major or a column-major array.

[src]

Return an immutable reference to the underlying data buffer of the array.

The arrangement of the elements in that vector is dependent on whether this is a row-major or a column-major array.

[src]

Return an mutable reference to the underlying data buffer of the array.

The arrangement of the elements in that vector is dependent on whether this is a row-major or a column-major array.

[src]

Transpose the matrix.

[src]

Compute the sum of the entries of the array.

[src]

Compute the mean of the array.

Trait Implementations

impl Encodable for Array
[src]

[src]

Serialize a value using an Encoder.

impl Decodable for Array
[src]

[src]

Deserialize a value using a Decoder.

impl Clone for Array
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Array
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> RowIterable for &'a Array
[src]

Important traits for ArrayIterator<'a>
[src]

Iterate over rows of the matrix.

[src]

View a row of the matrix.

Important traits for ArrayIterator<'a>
[src]

Iterate over a subset of rows of the matrix.

impl<'a> ColumnIterable for &'a Array
[src]

Important traits for ArrayIterator<'a>
[src]

Iterate over columns of a the matrix.

[src]

View a column of the matrix.

Important traits for ArrayIterator<'a>
[src]

Iterate over a subset of columns of the matrix.

impl IndexableMatrix for Array
[src]

[src]

Return the number of rows of the matrix.

[src]

Return the number of columns of the matrix.

[src]

Get the value of the entry at (row, column) without bounds checking.

[src]

Get a mutable reference to the value of the entry at (row, column) without bounds checking. Read more

[src]

Get the value of the entry at (row, column). Read more

[src]

Get a mutable reference to value of the entry at (row, column). Read more

[src]

Set the value of the entry at (row, column) to value. Read more

[src]

Set the value of the entry at (row, column) to value without bounds checking.

impl From<Vec<f32>> for Array
[src]

[src]

Construct an array from a vector.

Panics

This will panic if the input vector is emtpy.

impl<'a> From<&'a Vec<Vec<f32>>> for Array
[src]

[src]

Construct an array from a vector of vectors.

Panics

This will panic if the input vector is emtpy or if its rows are of unequal length.

impl ElementwiseArrayOps<f32> for Array
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a> ElementwiseArrayOps<&'a Array> for Array
[src]

Perform elementwise operations between two arrays.

Panics

Will panic if the two operands are not of the same shape.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<'a> Dot<&'a Array> for Array
[src]

[src]

impl RowIndex<Vec<usize>> for Array
[src]

[src]

impl<'a> From<&'a Array> for SparseRowArray
[src]

[src]

Performs the conversion.

impl<'a> From<&'a Array> for SparseColumnArray
[src]

[src]

Performs the conversion.

impl<'a> SupervisedModel<&'a Array> for RandomForest
[src]

[src]

[src]

[src]

impl<'a> SupervisedModel<&'a Array> for SGDClassifier
[src]

[src]

[src]

[src]

impl<'a> ParallelPredict<&'a Array> for SGDClassifier
[src]

[src]

[src]

impl<'a, T: SupervisedModel<&'a Array> + Clone> SupervisedModel<&'a Array> for OneVsRestWrapper<T>
[src]

[src]

[src]

[src]

impl<'a, T: SupervisedModel<&'a Array> + Clone + Sync> ParallelPredict<&'a Array> for OneVsRestWrapper<T>
[src]

[src]

[src]

impl<'a, T: SupervisedModel<&'a Array> + Clone + Sync + Send> ParallelSupervisedModel<&'a Array> for OneVsRestWrapper<T>
[src]

[src]

impl<'a> SupervisedModel<&'a Array> for DecisionTree
[src]

[src]

[src]

[src]

impl<'a> SupervisedModel<&'a Array> for SVC
[src]

[src]

[src]

[src]

Auto Trait Implementations

impl Send for Array

impl Sync for Array