Mercurial > hg > octave-terminal
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 +++ b/liboctave/chMatrix.cc @@ -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 {