diff src/ov-base-diag.h @ 8398:d95282fa0579

allow element assignment to diagonal matrices
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 11 Dec 2008 11:04:00 +0100
parents c43481a19bfe
children f00578b495e9
line wrap: on
line diff
--- a/src/ov-base-diag.h	Thu Dec 11 10:39:53 2008 +0100
+++ b/src/ov-base-diag.h	Thu Dec 11 11:04:00 2008 +0100
@@ -72,6 +72,10 @@
   octave_value do_index_op (const octave_value_list& idx,
 			    bool resize_ok = false);
 
+  octave_value subsasgn (const std::string& type,
+			 const std::list<octave_value_list>& idx,
+			 const octave_value& rhs);
+
   dim_vector dims (void) const { return matrix.dims (); }
 
   octave_idx_type nnz (void) const { return to_dense ().nnz (); }
@@ -244,7 +248,10 @@
 
   DMT matrix;
 
-  octave_value to_dense () const;
+  octave_value to_dense (void) const;
+
+  virtual bool chk_valid_scalar (const octave_value&, 
+                                 typename DMT::element_type&) const = 0;
 
 private: