VMatrixLib is a little, handy, Java matrix library which implements a set of utility functions (such as calculus of the determinant of a matrix, calculus of the rank, inverse matrix, and many others..) that anyone who have to use matrices needs.
A small snipet of code to find the determinant of a mtrix of any order.Input must be a list like [[1,2,3],[4,5,6],[7,8,9]] (for a matrix of order 3). Works fine.
X = POWERM_PADE(A,P) computes the P'th power X of the matrix A, for arbitrary real P and A with no nonpositive real eigenvalues, by the Schur-Pade algorithm. [X,NSQ,M] = POWERM_PADE(A, P) returns the number NSQ of matrix square roots computed and...
Calculates the inverse I of a matrix A.
[h,varargout]=plotColumns(data,varargin) plots columns of a matrix as if each column is a time series
USAGE: plotColumns(data); [h] = plotColumns(t,data); [h] = plotColumns(t,data,{colors}); [h] =...
The ref() returns row-echelon-form of nxn matrix.
Example >> a=[1 2 3 5; 2 4 5 6; 7 3 7 2; 2 4 1 8] >> ref(a) result show a row-echelon-form
FRD - Full rank factorization of input matrix X.
This will write X as the product of two matrices X = KL where both K and L have the same rank as X.
Revised public version of covariance matrix tools. (see attached Contents file).
Examples:
Insert the zeros-row on top of 3x3 matrix M = magic(3) bsxcat(1,0,M)
Concatenate the ones-column on right of 3x3 matrix M = magic(3) bsxcat(2,M,1)
The code uses array indexing to implement shifting of the matrix. It is about 2.5 times faster than using interp2 with 'nearest neighbor' option for shifting of the matrices. Inspiration for optimized array indexing comes from a snippet on...
The program searches for a girth 12 QC-LDPC code given size of sub-matrix, row and column weights. The configuration of sub-matrices could also be changed. The program offers flexibility in constructing girth-12 QC-LDPC codes compared to other...
The program searches for a girth 10 QC-LDPC code given size of sub-matrix, row and column weights. The configuration of sub-matrices could also be changed. The program offers flexibility in constructing girth-10 QC-LDPC codes compared to other...
Tristan Ursell Sub-pixel Resolved 2D Convolution March 2012 matout=matoverlay(mat1,mat2,x,y); This function takes an input matrix mat1 and creates an image of the matrix mat2 at the position (x,y) in mat1. If...
Finds the adjoint of a matrix of any size. This code was tested under the student edition of matlab version 5.0. Note: This also appears to work under MATLAB 5.2.1
Transform a inner product matrix or kernel matrix to a square of distance matrix
Simple function that plays a 3-D matrix as a movie to help visualize the values of the matrix. Much like movie but can be used to directly on raw data instead of converting it to movie frames. Main advantage is fast visualization of 3-D data.
RMI implementation of distributed matrix multiplier
RANDBLOCK - randomize blocks of a matrix
R = RANDBLOCK(M,S) randomizes the matrix M by dividing M into non-overlapping blocks of the size specified by S, and shuffling these blocks. M can be a N-D matrix.
The number of...
The set of vectors is passed like column vectors of a matrix. This algorithm take advantage of the matrix form using sub matrix (more vectors at the same time). I've tested it with a random 1000x1000 matrix (so 1000 vectors 1000x1)...
Function colAUC calculates Area under ROC curve (AUC) for a vector or for each column of a matrix.
The main properties of this code: * Ability to work with multi-dimensional data. * Ability to work with multi-class... |