diff src/ov.cc @ 4911:14027e0bafa4

[project @ 2004-07-22 19:58:06 by jwe]
author jwe
date Thu, 22 Jul 2004 19:58:06 +0000
parents 35bfb4e0b96b
children c638c144d4da
line wrap: on
line diff
--- a/src/ov.cc	Mon Jul 12 17:14:13 2004 +0000
+++ b/src/ov.cc	Thu Jul 22 19:58:06 2004 +0000
@@ -447,6 +447,13 @@
   maybe_mutate ();
 }
 
+octave_value::octave_value (const ArrayN<double>& a)
+  : rep (new octave_matrix (a))
+{
+  rep->count = 1;
+  maybe_mutate ();
+}
+
 octave_value::octave_value (const DiagMatrix& d)
   : rep (new octave_matrix (d))
 {
@@ -489,6 +496,13 @@
   maybe_mutate ();
 }
 
+octave_value::octave_value (const ArrayN<Complex>& a)
+  : rep (new octave_complex_matrix (a))
+{
+  rep->count = 1;
+  maybe_mutate ();
+}
+
 octave_value::octave_value (const ComplexDiagMatrix& d)
   : rep (new octave_complex_matrix (d))
 {