43 const std::list<octave_value_list>& idx)
57 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
77 idx0 = idx(0).index_vector ();
78 idx1 = idx(1).index_vector ();
115 if (nidx == 2 && ! resize_ok &&
209 #define FORWARD_MATRIX_VALUE(TYPE, PREFIX) \
211 octave_perm_matrix::PREFIX ## _value (bool frc_str_conv) const \
213 return to_dense ().PREFIX ## _value (frc_str_conv); \
288 bool colp = orient ==
'c';
293 error (
"load: failed to load permutation matrix constant");
308 error (
"load: failed to extract size & orientation");
321 os.write (reinterpret_cast<char *> (&sz), 4);
322 os.write (reinterpret_cast<char *> (&colp), 1);
323 os.write (reinterpret_cast<const char *> (
matrix.
data ()),
335 if (! (is.read (reinterpret_cast<char *> (&sz), 4)
336 && is.read (reinterpret_cast<char *> (&colp), 1)))
346 int nel = m.
numel ();
347 for (
int i = 0; i < nel; i++)
371 bool pr_as_read_syntax)
const
403 return to_dense ().
write (os, block_size, output_type, skip, flt_fmt);
408 const std::string& prefix)
const
426 "permutation matrix",
"double");