40 return v.full_value ().clone ();
109 && (dim >= 0 && dim <= 1) && odims (1-dim) == 1)
123 && (dim >= 0 && dim <= 1) && odims (1-dim) == 1)
174 error (
"lazy_index: corrupted data on load");
185 std::string (),
false, save_as_floats);
198 error (
"lazy_index: corrupted data on load");
octave_idx_type length(octave_idx_type n=0) const
octave_value permute(const Array< int > &vec, bool inv=false) const
Array< T > permute(const Array< octave_idx_type > &vec, bool inv=false) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
Sort by rows returns only indices.
octave_value permute(const Array< int > &vec, bool inv=false) const
bool is_defined(void) const
void error(const char *fmt,...)
bool save_ascii(std::ostream &os)
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)
octave_idx_type checkelem(octave_idx_type n) const
type_conv_info numeric_conversion_function(void) const
static const std::string value_save_tag("index_value")
idx_vector index_vector(bool require_integers=false) const
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
dim_vector orig_dimensions(void) const
Array< T > sort(int dim=0, sortmode mode=ASCENDING) const
idx_vector index_vector(bool=false) const
static int static_type_id(void)
bool save_ascii_data(std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_as_global, int precision)
const octave_value & make_value(void) const
Array< T > squeeze(void) const
Chop off leading singleton dimensions.
std::string read_binary_data(std::istream &is, bool swap, oct_mach_info::float_format fmt, const std::string &filename, bool &global, octave_value &tc, std::string &doc)
bool save_binary(std::ostream &os, bool &save_as_floats)
bool load_ascii(std::istream &is)
octave_value squeeze(void) const
Array< octave_idx_type > as_array(void) const
static octave_base_value * default_numeric_conversion_function(const octave_base_value &a)
sortmode is_sorted(sortmode mode=UNSORTED) const
Ordering is auto-detected or can be specified.
octave_idx_type extent(octave_idx_type n) const
bool is_range(void) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
bool save_binary_data(std::ostream &os, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_as_global, bool save_as_floats)
sortmode is_sorted(sortmode mode=UNSORTED) const
Array< T > reshape(octave_idx_type nr, octave_idx_type nc) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
bool load_binary(std::istream &is, bool swap, oct_mach_info::float_format fmt)
octave_value fast_elem_extract(octave_idx_type n) const
octave_idx_type increment(void) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
Ordering is auto-detected or can be specified.
idx_vector sorted(bool uniq=false) const
octave_value reshape(const dim_vector &new_dims) const
octave_base_value * try_narrowing_conversion(void)
std::string read_ascii_data(std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count)