Class: Matrix
Source Location: /PHPExcel/Shared/JAMA/Matrix.php
Class Details
Class Variables
Class Methods
constructor __construct [line 68]
Polymorphic constructor
As PHP has no support for polymorphic constructors, we hack our own sort of polymorphism using func_num_args, func_get_arg, and gettype. Polymorphic constructor
As PHP has no support for polymorphic constructors, we hack our own sort of polymorphism using func_num_args, func_get_arg, and gettype. In essence, we're just implementing a simple RTTI filter and calling the appropriate constructor.
Tags:
method arrayLeftDivide [line 1001]
arrayLeftDivide arrayLeftDivide
Element-by-element Left division A / B
Tags:
Parameters:
method arrayLeftDivideEquals [line 1038]
Matrix arrayLeftDivideEquals(
mixed
$B)
|
|
arrayLeftDivideEquals arrayLeftDivideEquals
Element-by-element Left division Aij = Aij / Bij
Tags:
Parameters:
method arrayRightDivide [line 927]
arrayRightDivide arrayRightDivide
Element-by-element right division A / B
Tags:
Parameters:
method arrayRightDivideEquals [line 964]
Matrix arrayRightDivideEquals(
mixed
$B)
|
|
arrayRightDivideEquals arrayRightDivideEquals
Element-by-element right division Aij = Aij / Bij
Tags:
Parameters:
method arrayTimes [line 853]
arrayTimes arrayTimes
Element-by-element multiplication Cij = Aij * Bij
Tags:
Parameters:
method arrayTimesEquals [line 890]
Matrix arrayTimesEquals(
mixed
$B)
|
|
arrayTimesEquals arrayTimesEquals
Element-by-element multiplication Aij = Aij * Bij
Tags:
Parameters:
method checkMatrixDimensions [line 405]
boolean checkMatrixDimensions(
[Matrix
$B = null])
|
|
checkMatrixDimensions checkMatrixDimensions
Is matrix B the same size?
Tags:
Parameters:
method chol [line 1236]
chol chol
Cholesky decomposition
Tags:
method concat [line 1201]
concat concat
A = A & B
Tags:
Parameters:
method cond [line 669]
Matrix condition (2 norm) Matrix condition (2 norm)
Tags:
method constructWithCopy [line 165]
void constructWithCopy(
double
$A)
|
|
constructWithCopy Construct a matrix from a copy of a 2-D array. constructWithCopy Construct a matrix from a copy of a 2-D array.
Tags:
Parameters:
method det [line 1318]
det det
Calculate determinant
Tags:
method diagonal [line 468]
Matrix diagonal(
[int
$m = null], [int
$n = null], [mixed
$c = 1])
|
|
diagonal diagonal
Generate a diagonal matrix
Tags:
Parameters:
method eig [line 1269]
eig eig
Eigenvalue decomposition
Tags:
method filled [line 486]
Matrix filled(
[int
$m = null], [int
$n = null], [int
$c = 0])
|
|
filled filled
Generate a filled matrix
Tags:
Parameters:
method get [line 243]
mixed get(
[int
$i = null], [int
$j = null])
|
|
get
Get the i,j-th element of the matrix. get
Get the i,j-th element of the matrix.
Tags:
Parameters:
method getArray [line 143]
method getArrayCopy [line 153]
getArrayCopy getArrayCopy
Tags:
method getColumnDimension [line 230]
int getColumnDimension(
)
|
|
getColumnDimension getColumnDimension
Tags:
method getColumnPackedCopy [line 187]
array getColumnPackedCopy(
)
|
|
getColumnPackedCopy getColumnPackedCopy
Get a column-packed array
Tags:
method getMatrix [line 258]
Matrix getMatrix(
int
$i0, int
$iF, int
$j0, int
$jF)
|
|
getMatrix getMatrix
Get a submatrix
Tags:
Parameters:
method getMatrixByCol [line 558]
Matrix getMatrixByCol(
[
$j0 = null], [
$jF = null], int
$i0, int
$iF)
|
|
getMatrixByCol getMatrixByCol
Get a submatrix by column index/range
Tags:
Parameters:
method getMatrixByRow [line 537]
Matrix getMatrixByRow(
[int
$i0 = null], [int
$iF = null])
|
|
getMatrixByRow getMatrixByRow
Get a submatrix by row index/range
Tags:
Parameters:
method getRowDimension [line 220]
getRowDimension getRowDimension
Tags:
method getRowPackedCopy [line 204]
array getRowPackedCopy(
)
|
|
getRowPackedCopy getRowPackedCopy
Get a row-packed array
Tags:
method identity [line 454]
Matrix identity(
[int
$m = null], [int
$n = null])
|
|
identity
Generate an identity matrix. identity
Generate an identity matrix.
Tags:
Parameters:
method inverse [line 1307]
Matrix inverse or pseudoinverse. Matrix inverse or pseudoinverse.
Tags:
method lu [line 1247]
lu lu
LU decomposition
Tags:
method minus [line 780]
minus minus
A - B
Tags:
Parameters:
method minusEquals [line 816]
minusEquals minusEquals
A = A - B
Tags:
Parameters:
method mprint [line 1329]
html mprint(
$A, [
$format = "%01.2f"], [
$width = 2])
|
|
Older debugging utility for backwards compatability. Older debugging utility for backwards compatability.
Tags:
Parameters:
method norm1 [line 594]
norm1 norm1
One norm
Tags:
method norm2 [line 613]
norm2 norm2
Maximum singular value
Tags:
method normF [line 642]
normF normF
Frobenius norm
Tags:
method normInf [line 623]
normInf normInf
Infinite norm
Tags:
method packed [line 524]
packed packed
Alias for getRowPacked
Tags:
method plus [line 708]
plus plus
A + B
Tags:
Parameters:
method plusEquals [line 744]
plusEquals plusEquals
A = A + B
Tags:
Parameters:
method power [line 1165]
power power
A = A ^ B
Tags:
Parameters:
method qr [line 1258]
qr qr
QR decomposition
Tags:
method random [line 503]
Matrix random(
[int
$m = null], [int
$n = null], [
$a = RAND_MIN], [
$b = RAND_MAX])
|
|
random random
Generate a random matrix
Tags:
Parameters:
method rank [line 658]
Matrix rank Matrix rank
Tags:
method set [line 428]
mixed set(
[int
$i = null], [int
$j = null], [mixed
$c = null])
|
|
set
Set the i,j-th element of the matrix. set
Set the i,j-th element of the matrix.
Tags:
Parameters:
method setMatrix [line 362]
void setMatrix(
int
$i0, int
$j0, mixed
$S)
|
|
setMatrix setMatrix
Set a submatrix
Tags:
Parameters:
method solve [line 1291]
Solve A*X = B. Solve A*X = B.
Tags:
Parameters:
method svd [line 1280]
svd svd
Singular value decomposition
Tags:
method times [line 1074]
times times
Matrix multiplication
Tags:
Parameters:
method toHTML [line 1349]
Output toHTML(
[
$width = 2])
|
|
Debugging utility. Debugging utility.
Tags:
Parameters:
method trace [line 681]
trace trace
Sum of diagonal elements
Tags:
method transpose [line 577]
transpose transpose
Tranpose matrix
Tags:
method uminus [line 697]
uminus uminus
Unary minus matrix -A
Tags:
|
|