comparison src/ov.cc @ 5785:6b9cec830d72

[project @ 2006-05-03 19:32:46 by dbateman]
author dbateman
date Wed, 03 May 2006 19:32:48 +0000
parents faafc2d98b8d
children 080c08b192d8
comparison
equal deleted inserted replaced
5784:70f7659d0fb9 5785:6b9cec830d72
371 ? dynamic_cast<octave_base_value *> (new octave_cs_list (Cell (a))) 371 ? dynamic_cast<octave_base_value *> (new octave_cs_list (Cell (a)))
372 : dynamic_cast<octave_base_value *> (new octave_cell (Cell (a)))) 372 : dynamic_cast<octave_base_value *> (new octave_cell (Cell (a))))
373 { 373 {
374 } 374 }
375 375
376 octave_value::octave_value (const Matrix& m) 376 octave_value::octave_value (const Matrix& m, const MatrixType& t)
377 : rep (new octave_matrix (m)) 377 : rep (new octave_matrix (m, t))
378 { 378 {
379 maybe_mutate (); 379 maybe_mutate ();
380 } 380 }
381 381
382 octave_value::octave_value (const NDArray& a) 382 octave_value::octave_value (const NDArray& a)
413 : rep (new octave_complex (C)) 413 : rep (new octave_complex (C))
414 { 414 {
415 maybe_mutate (); 415 maybe_mutate ();
416 } 416 }
417 417
418 octave_value::octave_value (const ComplexMatrix& m) 418 octave_value::octave_value (const ComplexMatrix& m, const MatrixType& t)
419 : rep (new octave_complex_matrix (m)) 419 : rep (new octave_complex_matrix (m, t))
420 { 420 {
421 maybe_mutate (); 421 maybe_mutate ();
422 } 422 }
423 423
424 octave_value::octave_value (const ComplexNDArray& a) 424 octave_value::octave_value (const ComplexNDArray& a)
454 octave_value::octave_value (bool b) 454 octave_value::octave_value (bool b)
455 : rep (new octave_bool (b)) 455 : rep (new octave_bool (b))
456 { 456 {
457 } 457 }
458 458
459 octave_value::octave_value (const boolMatrix& bm) 459 octave_value::octave_value (const boolMatrix& bm, const MatrixType& t)
460 : rep (new octave_bool_matrix (bm)) 460 : rep (new octave_bool_matrix (bm, t))
461 { 461 {
462 maybe_mutate (); 462 maybe_mutate ();
463 } 463 }
464 464
465 octave_value::octave_value (const boolNDArray& bnda) 465 octave_value::octave_value (const boolNDArray& bnda)
528 : new octave_char_matrix (chm)) 528 : new octave_char_matrix (chm))
529 { 529 {
530 maybe_mutate (); 530 maybe_mutate ();
531 } 531 }
532 532
533 octave_value::octave_value (const SparseMatrix& m, const SparseType &t) 533 octave_value::octave_value (const SparseMatrix& m, const MatrixType &t)
534 : rep (new octave_sparse_matrix (m, t)) 534 : rep (new octave_sparse_matrix (m, t))
535 { 535 {
536 maybe_mutate (); 536 maybe_mutate ();
537 } 537 }
538 538
539 octave_value::octave_value (const SparseComplexMatrix& m, const SparseType &t) 539 octave_value::octave_value (const SparseComplexMatrix& m, const MatrixType &t)
540 : rep (new octave_sparse_complex_matrix (m, t)) 540 : rep (new octave_sparse_complex_matrix (m, t))
541 { 541 {
542 maybe_mutate (); 542 maybe_mutate ();
543 } 543 }
544 544
545 octave_value::octave_value (const SparseBoolMatrix& bm, const SparseType &t) 545 octave_value::octave_value (const SparseBoolMatrix& bm, const MatrixType &t)
546 : rep (new octave_sparse_bool_matrix (bm, t)) 546 : rep (new octave_sparse_bool_matrix (bm, t))
547 { 547 {
548 maybe_mutate (); 548 maybe_mutate ();
549 } 549 }
550 550