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