diff src/ov-re-mat.cc @ 5164:57077d0ddc8e

[project @ 2005-02-25 19:55:24 by jwe]
author jwe
date Fri, 25 Feb 2005 19:55:28 +0000
parents 8ca032643f55
children 23b37da9fd5b
line wrap: on
line diff
--- a/src/ov-re-mat.cc	Fri Feb 25 17:42:55 2005 +0000
+++ b/src/ov-re-mat.cc	Fri Feb 25 19:55:28 2005 +0000
@@ -160,6 +160,21 @@
   return retval;
 }
   
+SparseMatrix 
+octave_matrix::sparse_matrix_value (bool) const
+{
+  return SparseMatrix (matrix.matrix_value ());
+}
+
+SparseComplexMatrix 
+octave_matrix::sparse_complex_matrix_value (bool) const
+{
+  // XXX FIXME XXX Need a SparseComplexMatrix (Matrix) constructor to make
+  // this function more efficient. Then this should become
+  // return SparseComplexMatrix (matrix.matrix_value ());
+  return SparseComplexMatrix (sparse_matrix_value ());
+}
+
 streamoff_array
 octave_matrix::streamoff_array_value (void) const
 {