Commit 9dd958d2 by Arnaud Charlet Committed by Arnaud Charlet

re PR ada/78845 (Inverse (Real_Matrix) result has wrong bounds)

	PR ada/78845

	* a-ngcoar.adb, a-ngrear.adb (Inverse): call Unit_Matrix with First_1
	set to A'First(2) and vice versa.

From-SVN: r247214
parent c16fa01e
2017-04-25 Arnaud Charlet <charlet@adacore.com trojanek>
PR ada/78845
* a-ngcoar.adb, a-ngrear.adb (Inverse): call Unit_Matrix with First_1
set to A'First(2) and vice versa.
2017-04-25 Yannick Moy <moy@adacore.com>
* freeze.adb (Freeze_Record_Type): Remove obsolete
......
......@@ -1153,7 +1153,9 @@ package body Ada.Numerics.Generic_Complex_Arrays is
-------------
function Inverse (A : Complex_Matrix) return Complex_Matrix is
(Solve (A, Unit_Matrix (Length (A))));
(Solve (A, Unit_Matrix (Length (A),
First_1 => A'First (2),
First_2 => A'First (1))));
-------------
-- Modulus --
......
......@@ -499,7 +499,9 @@ package body Ada.Numerics.Generic_Real_Arrays is
-------------
function Inverse (A : Real_Matrix) return Real_Matrix is
(Solve (A, Unit_Matrix (Length (A))));
(Solve (A, Unit_Matrix (Length (A),
First_1 => A'First (2),
First_2 => A'First (1))));
------------
-- Jacobi --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment