[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/Shared/JAMA/ -> Matrix.php (summary)

(no description)

File Size: 1159 lines (41 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Shared_JAMA_Matrix:: (31 methods):
  __construct()
  getArray()
  getRowDimension()
  getColumnDimension()
  get()
  getMatrix()
  checkMatrixDimensions()
  set()
  identity()
  diagonal()
  getMatrixByRow()
  getMatrixByCol()
  transpose()
  trace()
  uminus()
  plus()
  plusEquals()
  minus()
  minusEquals()
  arrayTimes()
  arrayTimesEquals()
  arrayRightDivide()
  arrayRightDivideEquals()
  arrayLeftDivide()
  arrayLeftDivideEquals()
  times()
  power()
  concat()
  solve()
  inverse()
  det()


Class: PHPExcel_Shared_JAMA_Matrix  - X-Ref


__construct()   X-Ref
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.

getArray()   X-Ref
getArray

return: array Matrix array

getRowDimension()   X-Ref
getRowDimension

return: int Row dimension

getColumnDimension()   X-Ref
getColumnDimension

return: int Column dimension

get($i = null, $j = null)   X-Ref
get

Get the i,j-th element of the matrix.
param: int $i Row position
param: int $j Column position
return: mixed Element (int/float/double)

getMatrix()   X-Ref
getMatrix

Get a submatrix
param: int $i0 Initial row index
param: int $iF Final row index
param: int $j0 Initial column index
param: int $jF Final column index
return: Matrix Submatrix

checkMatrixDimensions($B = null)   X-Ref
checkMatrixDimensions

Is matrix B the same size?
param: Matrix $B Matrix B
return: boolean

set($i = null, $j = null, $c = null)   X-Ref
set

Set the i,j-th element of the matrix.
param: int $i Row position
param: int $j Column position
param: mixed $c Int/float/double value
return: mixed Element (int/float/double)

identity($m = null, $n = null)   X-Ref
identity

Generate an identity matrix.
param: int $m Row dimension
param: int $n Column dimension
return: Matrix Identity matrix

diagonal($m = null, $n = null, $c = 1)   X-Ref
diagonal

Generate a diagonal matrix
param: int $m Row dimension
param: int $n Column dimension
param: mixed $c Diagonal value
return: Matrix Diagonal matrix

getMatrixByRow($i0 = null, $iF = null)   X-Ref
getMatrixByRow

Get a submatrix by row index/range
param: int $i0 Initial row index
param: int $iF Final row index
return: Matrix Submatrix

getMatrixByCol($j0 = null, $jF = null)   X-Ref
getMatrixByCol

Get a submatrix by column index/range
param: int $i0 Initial column index
param: int $iF Final column index
return: Matrix Submatrix

transpose()   X-Ref
transpose

Tranpose matrix
return: Matrix Transposed matrix

trace()   X-Ref
trace

Sum of diagonal elements
return: float Sum of diagonal elements

uminus()   X-Ref
uminus

Unary minus matrix -A
return: Matrix Unary minus matrix

plus()   X-Ref
plus

A + B
param: mixed $B Matrix/Array
return: Matrix Sum

plusEquals()   X-Ref
plusEquals

A = A + B
param: mixed $B Matrix/Array
return: Matrix Sum

minus()   X-Ref
minus

A - B
param: mixed $B Matrix/Array
return: Matrix Sum

minusEquals()   X-Ref
minusEquals

A = A - B
param: mixed $B Matrix/Array
return: Matrix Sum

arrayTimes()   X-Ref
arrayTimes

Element-by-element multiplication
Cij = Aij * Bij
param: mixed $B Matrix/Array
return: Matrix Matrix Cij

arrayTimesEquals()   X-Ref
arrayTimesEquals

Element-by-element multiplication
Aij = Aij * Bij
param: mixed $B Matrix/Array
return: Matrix Matrix Aij

arrayRightDivide()   X-Ref
arrayRightDivide

Element-by-element right division
A / B
param: Matrix $B Matrix B
return: Matrix Division result

arrayRightDivideEquals()   X-Ref
arrayRightDivideEquals

Element-by-element right division
Aij = Aij / Bij
param: mixed $B Matrix/Array
return: Matrix Matrix Aij

arrayLeftDivide()   X-Ref
arrayLeftDivide

Element-by-element Left division
A / B
param: Matrix $B Matrix B
return: Matrix Division result

arrayLeftDivideEquals()   X-Ref
arrayLeftDivideEquals

Element-by-element Left division
Aij = Aij / Bij
param: mixed $B Matrix/Array
return: Matrix Matrix Aij

times()   X-Ref
times

Matrix multiplication
param: mixed $n Matrix/Array/Scalar
return: Matrix Product

power()   X-Ref
power

A = A ^ B
param: mixed $B Matrix/Array
return: Matrix Sum

concat()   X-Ref
concat

A = A & B
param: mixed $B Matrix/Array
return: Matrix Sum

solve($B)   X-Ref
Solve A*X = B.

param: Matrix $B Right hand side
return: Matrix ... Solution if A is square, least squares solution otherwise

inverse()   X-Ref
Matrix inverse or pseudoinverse.

return: Matrix ... Inverse(A) if A is square, pseudoinverse otherwise.

det()   X-Ref
det

Calculate determinant
return: float Determinant



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1