public function PHPExcel_Shared_JAMA_Matrix::checkMatrixDimensions in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/Matrix.php \PHPExcel_Shared_JAMA_Matrix::checkMatrixDimensions()
* checkMatrixDimensions * * Is matrix B the same size? *
Parameters
Matrix $B Matrix B: * @return boolean
12 calls to PHPExcel_Shared_JAMA_Matrix::checkMatrixDimensions()
- PHPExcel_Shared_JAMA_Matrix::arrayLeftDivide in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * arrayLeftDivide * * Element-by-element Left division * A / B *
- PHPExcel_Shared_JAMA_Matrix::arrayLeftDivideEquals in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * arrayLeftDivideEquals * * Element-by-element Left division * Aij = Aij / Bij *
- PHPExcel_Shared_JAMA_Matrix::arrayRightDivide in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * arrayRightDivide * * Element-by-element right division * A / B *
- PHPExcel_Shared_JAMA_Matrix::arrayRightDivideEquals in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * arrayRightDivideEquals * * Element-by-element right division * Aij = Aij / Bij *
- PHPExcel_Shared_JAMA_Matrix::arrayTimes in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * arrayTimes * * Element-by-element multiplication * Cij = Aij * Bij *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php, line 272
Class
Code
public function checkMatrixDimensions($B = null) {
if ($B instanceof PHPExcel_Shared_JAMA_Matrix) {
if ($this->m == $B
->getRowDimension() && $this->n == $B
->getColumnDimension()) {
return true;
}
else {
throw new PHPExcel_Calculation_Exception(self::MatrixDimensionException);
}
}
else {
throw new PHPExcel_Calculation_Exception(self::ArgumentTypeException);
}
}