Check if a given sequence is sorted.
Check if a given sequence is sorted.
Sequence that needs to be checked.
true if the squence is sorted. false otherwise
Converts a matrix to an array of columns.
Converts a matrix to an array of columns.
Input matrix.
Array of columns.
Converts a matrix to an array of rows.
Converts a matrix to an array of rows.
Input matrix.
Array of rows.
Converts a RDD of DenseVector to a RDD of DenseMatrix such that vectors in each partition are stacked into a rows to make a DenseMatrix.
Converts a RDD of DenseVector to a RDD of DenseMatrix such that vectors in each partition are stacked into a rows to make a DenseMatrix.
RDD of DenseVectors (row)
RDD containing dense matrices
Converts an array of DenseVector to a matrix where each vector is a row.
Converts an array of DenseVector to a matrix where each vector is a row.
Array of DenseVectors (rows)
A row matrix.
Converts a sequence of DenseVector to a matrix where each vector is a row.
Converts a sequence of DenseVector to a matrix where each vector is a row.
Sequence of of DenseVectors (rows)
A row matrix.
Converts a sequence of DenseVector to a matrix where each vector is a row.
Converts a sequence of DenseVector to a matrix where each vector is a row.
Sequence of of DenseVectors (rows)
Iterator with a single element if rows is non-empty. Empty iterator otherwise.
Draw samples rows from a matrix.
Draw samples rows from a matrix.
Input matrix.
Number of samples to draw.
A matrix constructed from a sample of the rows.
A collection of utilities useful for matrices.