This trait is commonly used for breeze.linalg.sum and its kin for summing along a particular axis of a Matrix.
TODO
TODO
Class for classes that are broadcasting their columns.
Class for classes that are broadcasting their rows.
A compressed sparse column matrix, as used in Matlab and CSparse, etc.
A map-like tensor that acts like a collection of key-value pairs where the set of values may grow arbitrarily.
A map-like tensor that acts like a collection of key-value pairs where the set of values may grow arbitrarily.
A DenseMatrix is a matrix with all elements found in an array.
A DenseVector is the "obvious" implementation of a Vector, with one twist.
A HashVector is a sparse vector backed by an OpenAddressHashArray
Marker trait for exceptions thrown from the breeze.linalg package.
Thrown when trying to solve using a singular matrix.
Exception thrown if a routine has not converged.
In some sense, this is the real root of the linalg hierarchy.
Perform Principal Components Analysis on input data.
We occasionally need a Tensor that doesn't extend NumericOps directly.
A SliceVector is a vector that is a view of another underlying tensor.
A vector backed by binary search (with breeze.collection.mutable.SparseArray).
Add methods to the string class in order to make file reading easier
A Tensor defines a map from an index set to a set of values.
TODO
A Vector represents the mathematical concept of a vector in math.
A VectorBuilder is basically an unsorted Sparse Vector.
Trait that can mixed to companion objects to enable utility methods for creating vectors.
Trait for operators and such used in vectors.
Reducing UFunc that provides implementations for Broadcasted Dense stuff
Trait used for methods that can return a view or a copy.
Usually used as the return type from zipValues
Nearly direct port of http://www.
Computes the LU factorization of the given real M-by-N matrix X such that X = P * L * U where P is a permutation matrix (row exchanges).
Returns a cumulative sum of the vector (ie cumsum).
all(t) true if all elements of t are non-zero all(f, t) returns true if all elements of t satisfy f
any(t) true if any element of t is non-zero any(f, t) returns true if any element of t satisfies f
Returns the key that has maximum value
Returns a sequence of keys sorted by value
Returns the top k indices with maximum value
Computes y += x * a, possibly doing less work than actually doing that operation
Computes the cholesky decomposition A of the given real symmetric positive definite matrix X such that X = A A.
clip(a, lower, upper) returns an array such that all elements are "clipped" at the range (lower, upper)
Computes the condition number of the given real matrix.
Provides casting facilities similar to Numpy's "astype" and Julia's "convert".
Copy a T.
Copy a T. Most tensor objects have a CanCopy implicit, which is what this farms out to.
Compute the covariance matrix from the given data, centering if necessary.
Compute the covariance matrix from the given data, centering if necessary. Very simple, just does the basic thing.
Vector cross product of 3D vectors a and b.
Reads in a DenseMatrix from a CSV File
Computes the determinant of the given real matrix.
returns a vector along the diagonal of v.
Differences between adjacent elements and discrete derivatives.
breeze 7/15/14
Eigenvalue decomposition (right eigenvectors)
Computes all eigenvalues (and optionally right eigenvectors) of the given real symmetric matrix X.
mirrors the columns (left<->right).
mirrors the rows (up down)
Computes the inverse of a given real matrix.
Created by dlwh on 11/1/15.
Returns the Kronecker product of two matrices a and b, usually denoted a ⊗ b.
Generates a vector of linearly spaced values between a and b (inclusive).
Generates a vector of linearly spaced values between a and b (inclusive). The returned vector will have length elements, defaulting to 100.
Computes the log of the determinant of the given real matrix.
The lower triangular portion of the given real quadratic matrix X.
The lower triangular portion of the given real quadratic matrix X. Note that no check will be performed regarding the symmetry of X.
UFunc for being able to map the keys and values in a value collection to new values.
Computes the minimum.
Minimum and maximum in one traversal, along an axis.
Raises m to the exp'th power via eigenvalue decomposition.
Computes the norm of an object.
Normalizes the argument such that its norm is 1.
Computes the Moore-Penrose pseudo inverse of the given real matrix X.
Performs a principal components analysis on the given numeric data matrix and returns the results as an object of class PCA.
Performs a principal components analysis on the given numeric data matrix and returns the results as an object of class PCA.
If the no covariance matrix is supplied, one obtained from the given data is used.
Computes the product
Peak-to-peak, ie the Range of values (maximum - minimum) along an axis.
QR Factorization
QR Factorization with pivoting
Alias for randomDouble
Gives Gaussian-distributed random Double(s) + randn().
Gives a random Double.
Gives a random Int.
Computes the rank of a matrix.
Returns the rank of each element in the given vector, adjusting for ties.
breeze 7/4/14
Returns a reversed copy of the DenseVector.
roll the array
Rotates a matrix by 90 * k degrees counter clockwise.
A generic function (based on the R function of the same name) whose default method centers and/or scales the columns of a numeric matrix.
A generic function (based on the R function of the same name) whose default method centers and/or scales the columns of a numeric matrix.
If ‘scale’ is ‘TRUE’ then scaling is done by dividing the (centered) columns of ‘x’ by their standard deviations if ‘center’ is ‘TRUE’, and the root mean square otherwise. If ‘scale’ is ‘FALSE’, no scaling is done.
method for representing scaleAdd(y, a, x) == y + a * x
Return the given DenseVector, Array, or DenseMatrix as a shuffled copy by using Fisher-Yates shuffle.
Computes the softmax (a.
split the array
Computes the squared distance between two vectors.
The lower triangular portion of the given real quadratic matrix X with the diagnal elements is zero!
The upper triangular portion of the given real quadratic matrix X with the diagnal elements is zero!
TODO
Computes the SVD of a M-by-N matrix Returns an M-by-M matrix U, a vector of singular values, and a N-by-N matrix V'
Computes the determinant of the given real matrix.
deduplicates the array
The upper triangular portion of the given real quadratic matrix X.
The upper triangular portion of the given real quadratic matrix X. Note that no check will be performed regarding the symmetry of X.
val to determine if breeze is using natives or f2jblas
where(a)
returns those indices that are non-zero
This package contains everything relating to Vectors, Matrices, Tensors, etc.
If you're doing basic work, you probably want breeze.linalg.DenseVector and breeze.linalg.DenseMatrix, which support most operations. We also have breeze.linalg.SparseVectors and (basic!) support for a sparse matrix (breeze.linalg.CSCMatrix).
This package object contains Matlab-esque functions for interacting with tensors and matrices.