changeset 1733:f236cc1c8bee

[project @ 1996-01-11 05:51:25 by jwe]
author jwe
date Thu, 11 Jan 1996 05:51:25 +0000
parents a00118041518
children d0e2735fcaec
files liboctave/chMatrix.cc
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/chMatrix.cc	Wed Jan 10 22:36:42 1996 +0000
+++ b/liboctave/chMatrix.cc	Thu Jan 11 05:51:25 1996 +0000
@@ -52,6 +52,14 @@
     elem (0, i) = s[i];
 }
 
+charMatrix::charMatrix (const string& s)
+  : MArray2<char> (1, s.length ())
+{
+  int nc = cols ();
+  for (int i = 0; i < nc; i++)
+    elem (0, i) = s[i];
+}
+
 int
 charMatrix::operator == (const charMatrix& a) const
 {