comparison src/ov.cc @ 4532:01ee68d18069

[project @ 2003-10-10 00:49:54 by jwe]
author jwe
date Fri, 10 Oct 2003 00:49:55 +0000
parents 34c934a1b08f
children 742993a501b9
comparison
equal deleted inserted replaced
4531:b570d7825fb9 4532:01ee68d18069
408 rep = new octave_cell (c); 408 rep = new octave_cell (c);
409 409
410 rep->count = 1; 410 rep->count = 1;
411 } 411 }
412 412
413 octave_value::octave_value (const ArrayN<octave_value>& a, bool is_cs_list)
414 : rep (0)
415 {
416 Cell c (a);
417
418 if (is_cs_list)
419 rep = new octave_cs_list (c);
420 else
421 rep = new octave_cell (c);
422
423 rep->count = 1;
424 }
425
413 octave_value::octave_value (const Matrix& m) 426 octave_value::octave_value (const Matrix& m)
414 : rep (new octave_matrix (m)) 427 : rep (new octave_matrix (m))
415 { 428 {
416 rep->count = 1; 429 rep->count = 1;
417 maybe_mutate (); 430 maybe_mutate ();