Navigation

Operators and Keywords

Function List:

C++ API

Array-util.cc File Reference

#include "Array-util.h"
#include "dim-vector.h"
#include "lo-error.h"
#include "oct-locbuf.h"

Include dependency graph for Array-util.cc:


Classes

struct  sub2ind_helper

Functions

bool index_in_bounds (const Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
void increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension)
octave_idx_type get_scalar_idx (Array< octave_idx_type > &idx, dim_vector &dims)
octave_idx_type num_ones (const Array< octave_idx_type > &ra_idx)
bool is_scalar (const dim_vector &dim)
bool is_vector (const dim_vector &dim)
bool any_ones (const Array< octave_idx_type > &arr)
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx, const dim_vector &dims)
Array< octave_idx_typeconv_to_int_array (const Array< idx_vector > &a)
Array< idx_vectorconv_to_array (const idx_vector *tmp, const octave_idx_type len)
dim_vector freeze (Array< idx_vector > &ra_idx, const dim_vector &dimensions, int resize_ok)
bool vector_equivalent (const dim_vector &dv)
bool all_ok (const Array< idx_vector > &ra_idx)
bool any_orig_empty (const Array< idx_vector > &ra_idx)
bool all_colon_equiv (const Array< idx_vector > &ra_idx, const dim_vector &frozen_lengths)
bool all_ones (const Array< octave_idx_type > &arr)
Array< octave_idx_typeget_elt_idx (const Array< idx_vector > &ra_idx, const Array< octave_idx_type > &result_idx)
Array< octave_idx_typeget_ra_idx (octave_idx_type idx, const dim_vector &dims)
dim_vector zero_dims_inquire (const Array< idx_vector > &ia, const dim_vector &rhdv)
dim_vector zero_dims_inquire (const idx_vector &i, const idx_vector &j, const dim_vector &rhdv)
idx_vector sub2ind (const dim_vector &dv, const Array< idx_vector > &idxa)
Array< idx_vectorind2sub (const dim_vector &dv, const idx_vector &idx)
int permute_vector_compare (const void *a, const void *b)
void gripe_nan_to_logical_conversion (void)
void gripe_nonconformant (const char *op, int op1_len, int op2_len)
void gripe_nonconformant (const char *op, int op1_nr, int op1_nc, int op2_nr, int op2_nc)
void gripe_nonconformant (const char *op, dim_vector &op1_dims, dim_vector &op2_dims)

Function Documentation

bool all_colon_equiv ( const Array< idx_vector > &  ra_idx,
const dim_vector frozen_lengths 
)

bool all_ok ( const Array< idx_vector > &  ra_idx  ) 

bool all_ones ( const Array< octave_idx_type > &  arr  ) 

bool any_ones ( const Array< octave_idx_type > &  arr  ) 

bool any_orig_empty ( const Array< idx_vector > &  ra_idx  ) 

octave_idx_type compute_index ( const Array< octave_idx_type > &  ra_idx,
const dim_vector dims 
)

Array<idx_vector> conv_to_array ( const idx_vector tmp,
const octave_idx_type  len 
)

Array<octave_idx_type> conv_to_int_array ( const Array< idx_vector > &  a  ) 

dim_vector freeze ( Array< idx_vector > &  ra_idx,
const dim_vector dimensions,
int  resize_ok 
)

Array<octave_idx_type> get_elt_idx ( const Array< idx_vector > &  ra_idx,
const Array< octave_idx_type > &  result_idx 
)

Array<octave_idx_type> get_ra_idx ( octave_idx_type  idx,
const dim_vector dims 
)

octave_idx_type get_scalar_idx ( Array< octave_idx_type > &  idx,
dim_vector dims 
)

void gripe_nan_to_logical_conversion ( void   ) 

void gripe_nonconformant ( const char *  op,
dim_vector op1_dims,
dim_vector op2_dims 
)

void gripe_nonconformant ( const char *  op,
int  op1_nr,
int  op1_nc,
int  op2_nr,
int  op2_nc 
)

void gripe_nonconformant ( const char *  op,
int  op1_len,
int  op2_len 
)

void increment_index ( Array< octave_idx_type > &  ra_idx,
const dim_vector dimensions,
int  start_dimension 
)

Array<idx_vector> ind2sub ( const dim_vector dv,
const idx_vector idx 
)

bool index_in_bounds ( const Array< octave_idx_type > &  ra_idx,
const dim_vector dimensions 
)

bool is_scalar ( const dim_vector dim  ) 

bool is_vector ( const dim_vector dim  ) 

octave_idx_type num_ones ( const Array< octave_idx_type > &  ra_idx  ) 

int permute_vector_compare ( const void *  a,
const void *  b 
)

idx_vector sub2ind ( const dim_vector dv,
const Array< idx_vector > &  idxa 
)

bool vector_equivalent ( const dim_vector dv  ) 

dim_vector zero_dims_inquire ( const idx_vector i,
const idx_vector j,
const dim_vector rhdv 
)

dim_vector zero_dims_inquire ( const Array< idx_vector > &  ia,
const dim_vector rhdv 
)