diff src/sparse-xpow.cc @ 5506:b4cfbb0ec8c4

[project @ 2005-10-23 19:09:32 by dbateman]
author dbateman
date Sun, 23 Oct 2005 19:09:33 +0000
parents 4c8a2e4e0717
children 2857357f9d3c
line wrap: on
line diff
--- a/src/sparse-xpow.cc	Fri Oct 21 12:30:29 2005 +0000
+++ b/src/sparse-xpow.cc	Sun Oct 23 19:09:33 2005 +0000
@@ -90,8 +90,9 @@
 
 		  octave_idx_type info;
 		  double rcond = 0.0;
+		  SparseType mattyp (a);
 
-		  atmp = a.inverse (info, rcond, 1);
+		  atmp = a.inverse (mattyp, info, rcond, 1);
 
 		  if (info == -1)
 		    warning ("inverse: matrix singular to machine\
@@ -162,8 +163,9 @@
 
 		  octave_idx_type info;
 		  double rcond = 0.0;
+		  SparseType mattyp (a);
 
-		  atmp = a.inverse (info, rcond, 1);
+		  atmp = a.inverse (mattyp, info, rcond, 1);
 
 		  if (info == -1)
 		    warning ("inverse: matrix singular to machine\