Mercurial > hg > octave-nkf
comparison src/ov-base-sparse.h @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | 57077d0ddc8e |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
5274:eae7b40388e9 | 5275:23b37da9fd5b |
---|---|
72 | 72 |
73 octave_value *clone (void) const { return new octave_base_sparse (*this); } | 73 octave_value *clone (void) const { return new octave_base_sparse (*this); } |
74 octave_value *empty_clone (void) const | 74 octave_value *empty_clone (void) const |
75 { return new octave_base_sparse (); } | 75 { return new octave_base_sparse (); } |
76 | 76 |
77 int nnz (void) const { return matrix.nnz (); } | 77 octave_idx_type nnz (void) const { return matrix.nnz (); } |
78 int nonzero (void) const { return matrix.nonzero (); } | 78 octave_idx_type nonzero (void) const { return matrix.nonzero (); } |
79 | 79 |
80 size_t byte_size (void) const { return matrix.byte_size (); } | 80 size_t byte_size (void) const { return matrix.byte_size (); } |
81 | 81 |
82 octave_value squeeze (void) const { return matrix.squeeze (); } | 82 octave_value squeeze (void) const { return matrix.squeeze (); } |
83 | 83 |
124 | 124 |
125 bool is_constant (void) const { return true; } | 125 bool is_constant (void) const { return true; } |
126 | 126 |
127 bool is_true (void) const; | 127 bool is_true (void) const; |
128 | 128 |
129 int capacity (void) const { return matrix.capacity (); } | 129 octave_idx_type capacity (void) const { return matrix.capacity (); } |
130 | 130 |
131 bool print_as_scalar (void) const; | 131 bool print_as_scalar (void) const; |
132 | 132 |
133 void print (std::ostream& os, bool pr_as_read_syntax = false) const; | 133 void print (std::ostream& os, bool pr_as_read_syntax = false) const; |
134 | 134 |