comparison src/DLD-FUNCTIONS/colamd.cc @ 5631:7171d19706df

[project @ 2006-02-22 20:15:06 by dbateman]
author dbateman
date Wed, 22 Feb 2006 20:16:00 +0000
parents 2857357f9d3c
children 2618a0750ae6
comparison
equal deleted inserted replaced
5630:512d0d11ae39 5631:7171d19706df
328 octave_idx_type n_row, n_col, nnz; 328 octave_idx_type n_row, n_col, nnz;
329 octave_idx_type *ridx, *cidx; 329 octave_idx_type *ridx, *cidx;
330 SparseComplexMatrix scm; 330 SparseComplexMatrix scm;
331 SparseMatrix sm; 331 SparseMatrix sm;
332 332
333 if (args(0).class_name () == "sparse") 333 if (args(0).is_sparse_type ())
334 { 334 {
335 if (args(0).is_complex_type ()) 335 if (args(0).is_complex_type ())
336 { 336 {
337 scm = args(0). sparse_complex_matrix_value (); 337 scm = args(0). sparse_complex_matrix_value ();
338 n_row = scm.rows (); 338 n_row = scm.rows ();
537 octave_idx_type n_row, n_col, nnz; 537 octave_idx_type n_row, n_col, nnz;
538 octave_idx_type *ridx, *cidx; 538 octave_idx_type *ridx, *cidx;
539 SparseMatrix sm; 539 SparseMatrix sm;
540 SparseComplexMatrix scm; 540 SparseComplexMatrix scm;
541 541
542 if (args(0).class_name () == "sparse") 542 if (args(0).is_sparse_type ())
543 { 543 {
544 if (args(0).is_complex_type ()) 544 if (args(0).is_complex_type ())
545 { 545 {
546 scm = args(0).sparse_complex_matrix_value (); 546 scm = args(0).sparse_complex_matrix_value ();
547 n_row = scm.rows (); 547 n_row = scm.rows ();
662 octave_idx_type *ridx, *cidx; 662 octave_idx_type *ridx, *cidx;
663 bool is_sym = true; 663 bool is_sym = true;
664 SparseMatrix sm; 664 SparseMatrix sm;
665 SparseComplexMatrix scm; 665 SparseComplexMatrix scm;
666 666
667 if (args(0).class_name () == "sparse") 667 if (args(0).is_sparse_type ())
668 { 668 {
669 if (args(0).is_complex_type ()) 669 if (args(0).is_complex_type ())
670 { 670 {
671 scm = args(0).sparse_complex_matrix_value (); 671 scm = args(0).sparse_complex_matrix_value ();
672 n_row = scm.rows (); 672 n_row = scm.rows ();