85 error (
"sparse indexing needs 1 or 2 indices");
94 const std::list<octave_value_list>& idx)
101 retval = do_index_op (idx.front ());
107 std::string nm = type_name ();
108 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
122 const std::list<octave_value_list>& idx,
131 if (type.length () == 1)
132 retval = numeric_assign (type, idx, rhs);
135 std::string nm = type_name ();
136 error (
"in indexed assignment of %s, last lhs index must be ()",
149 retval = tmp.
subsasgn (type, idx, rhs);
153 std::string nm = type_name ();
154 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
180 matrix.assign (i, rhs);
194 matrix.assign (i, j, rhs);
201 error (
"sparse indexing needs 1 or 2 indices");
206 typ.invalidate_type ();
222 matrix.delete_elements (i);
236 matrix.delete_elements (i, j);
243 error (
"sparse indexing needs 1 or 2 indices");
247 typ.invalidate_type ();
268 if (nz == nel && nel > 0)
293 print_raw (os, pr_as_read_syntax);
300 const std::string& prefix)
const
302 matrix.print_info (os, prefix);
308 bool pr_as_read_syntax)
const
320 os <<
"Compressed Column Sparse (rows = " << nr
330 double dnel = dnr * dnc;
334 double pct = (nz / dnel * 100);
356 os <<
" [" << std::setprecision (prec) << pct <<
"%]";
379 os <<
" (" << matrix.ridx (i)+1 <<
", " << j+1 <<
") -> ";
394 matrix.maybe_compress ();
396 os <<
"# nnz: " << nnz () <<
"\n";
397 os <<
"# rows: " << dv (0) <<
"\n";
398 os <<
"# columns: " << dv (1) <<
"\n";
424 error (
"load: failed to load matrix constant");
432 error (
"load: failed to extract number of rows and columns");
448 if (umap >= umap_xisalnum && umap <= umap_xtoupper)