search

goog.math.Matrix

Provided By

Class for representing and manipulating matrices.

The entry that lies in the i-th row and the j-th column of a matrix is typically referred to as the i,j entry of the matrix.

The m-by-n matrix A would have its entries referred to as: [ a0,0 a0,1 a0,2 ... a0,j ... a0,n ] [ a1,0 a1,1 a1,2 ... a1,j ... a1,n ] [ a2,0 a2,1 a2,2 ... a2,j ... a2,n ] [ . . . . . ] [ . . . . . ] [ . . . . . ] [ ai,0 ai,1 ai,2 ... ai,j ... ai,n ] [ . . . . . ] [ . . . . . ] [ . . . . . ] [ am,0 am,1 am,2 ... am,j ... am,n ]

new Matrix( m, opt_n )

Parameters
m(goog.math.Matrix|Array<Array<number>>|goog.math.Size|number)

A matrix to copy, a 2D-array to take as a template, a size object for dimensions, or the number of rows.

opt_nnumber=

Number of columns of the matrix (only applicable if the first argument is also numeric).

Instance Methods

Static Functions