Class: Matrix
Source Location: /PHPExcel/Shared/JAMA/Matrix.php
Class Details
Class Variables
Class Methods
constructor Matrix [line 54]
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.
method arrayLeftDivide [line 1052]
arrayLeftDivide arrayLeftDivide Element-by-element Left division A / B
Tags:
Parameters:
method arrayLeftDivideEquals [line 1100]
Matrix &arrayLeftDivideEquals(
mixed
$B)
|
|
arrayLeftDivideEquals arrayLeftDivideEquals Element-by-element Left division Aij = Aij / Bij
Tags:
Parameters:
method arrayRightDivide [line 956]
arrayRightDivide arrayRightDivide Element-by-element right division A / B
Tags:
Parameters:
method arrayRightDivideEquals [line 1004]
Matrix &arrayRightDivideEquals(
mixed
$B)
|
|
arrayRightDivideEquals arrayRightDivideEquals Element-by-element right division Aij = Aij / Bij
Tags:
Parameters:
method arrayTimes [line 859]
arrayTimes arrayTimes Element-by-element multiplication Cij = Aij * Bij
Tags:
Parameters:
method arrayTimesEquals [line 908]
Matrix &arrayTimesEquals(
mixed
$B)
|
|
arrayTimesEquals arrayTimesEquals Element-by-element multiplication Aij = Aij * Bij
Tags:
Parameters:
method checkMatrixDimensions [line 382]
boolean checkMatrixDimensions(
[Matrix
$B = null])
|
|
checkMatrixDimensions checkMatrixDimensions Is matrix B the same size?
Parameters:
method chol [line 1223]
chol chol Cholesky decomposition
Tags:
method cond [line 634]
Matrix condition (2 norm) Matrix condition (2 norm)
Tags:
method constructWithCopy [line 149]
void constructWithCopy(
double
$A)
|
|
Construct a matrix from a copy of a 2-D array. Construct a matrix from a copy of a 2-D array.
Tags:
Parameters:
method det [line 1293]
det det Calculate determinant
Tags:
method diagonal [line 439]
Matrix &diagonal(
[int
$m = null], [int
$n = null], [mixed
$c = 1])
|
|
diagonal diagonal Generate a diagonal matrix
Tags:
Parameters:
method eig [line 1251]
eig eig Eigenvalue decomposition
Tags:
method filled [line 454]
Matrix &filled(
[int
$m = null], [int
$n = null], [int
$c = 0])
|
|
filled filled Generate a filled matrix
Tags:
Parameters:
method get [line 215]
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 133]
method getArrayCopy [line 141]
getArrayCopy getArrayCopy
Tags:
method getColumnDimension [line 204]
int getColumnDimension(
)
|
|
getColumnDimension getColumnDimension
Tags:
method getColumnPackedCopy [line 167]
array getColumnPackedCopy(
)
|
|
getColumnPacked getColumnPacked Get a column-packed array
Tags:
method getMatrix [line 228]
Matrix getMatrix(
int
$i0, int
$iF, int
$j0, int
$jF)
|
|
getMatrix getMatrix Get a submatrix
Tags:
Parameters:
method getMatrixByCol [line 518]
Matrix getMatrixByCol(
[
$j0 = null], [
$jF = null], int
$i0, int
$iF)
|
|
getMatrixByCol getMatrixByCol Get a submatrix by column index/range
Tags:
Parameters:
method getMatrixByRow [line 501]
Matrix getMatrixByRow(
[int
$i0 = null], [int
$iF = null])
|
|
getMatrixByRow getMatrixByRow Get a submatrix by row index/range
Tags:
Parameters:
method getRowDimension [line 196]
getRowDimension getRowDimension
Tags:
method getRowPackedCopy [line 182]
array getRowPackedCopy(
)
|
|
getRowPacked getRowPacked Get a row-packed array
Tags:
method identity [line 427]
Matrix &identity(
[int
$m = null], [int
$n = null])
|
|
identity Generate an identity matrix. identity Generate an identity matrix.
Tags:
Parameters:
method inverse [line 1283]
Matrix inverse or pseudoinverse. Matrix inverse or pseudoinverse.
Tags:
method lu [line 1232]
lu lu LU decomposition
Tags:
method minus [line 764]
minus minus A - B
Tags:
Parameters:
method minusEquals [line 811]
Matrix &minusEquals(
mixed
$B)
|
|
minusEquals minusEquals A = A - B
Tags:
Parameters:
method mprint [line 1302]
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 561]
norm1 norm1 One norm
Tags:
method norm2 [line 583]
norm2 norm2 Maximum singular value
Tags:
method normF [line 613]
normF normF Frobenius norm
Tags:
method normInf [line 592]
normInf normInf Infinite norm
Tags:
method packed [line 489]
packed packed Alias for getRowPacked
Tags:
method plus [line 670]
plus plus A + B
Tags:
Parameters:
method plusEquals [line 717]
plusEquals plusEquals A = A + B
Tags:
Parameters:
method qr [line 1241]
qr qr QR decomposition
Tags:
method random [line 470]
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 625]
Matrix rank Matrix rank
Tags:
method set [line 403]
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 335]
void setMatrix(
int
$i0, int
$j0, mixed
$S)
|
|
setMatrix setMatrix Set a submatrix
Parameters:
method solve [line 1269]
Solve A*X = B. Solve A*X = B.
Tags:
Parameters:
method svd [line 1260]
svd svd Singular value decomposition
Tags:
method times [line 1147]
times times Matrix multiplication
Tags:
Parameters:
method toHTML [line 1321]
Output toHTML(
[
$width = 2])
|
|
Debugging utility. Debugging utility.
Tags:
Parameters:
method trace [line 644]
trace trace Sum of diagonal elements
Tags:
method transpose [line 533]
transpose transpose Tranpose matrix
Tags:
method uminus [line 660]
uminus uminus Unary minus matrix -A
Tags:
|
|