ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
inverse.php
Go to the documentation of this file.
1<?php
2
11namespace Matrix;
12
20if (!function_exists(__NAMESPACE__ . '\\inverse')) {
21 function inverse($matrix): Matrix
22 {
23 if (is_array($matrix)) {
24 $matrix = new Matrix($matrix);
25 }
26 if (!$matrix instanceof Matrix) {
27 throw new Exception('Must be Matrix or array');
28 }
29
31 }
32}
An exception for terminatinating execution or to throw for unit testing.
static inverse(Matrix $matrix, string $type='inverse')
Return the inverse of this matrix.
Definition: Functions.php:232
$matrix
Definition: test.php:18
Class for the creating "special" Matrices.
Definition: Builder.php:11