GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Member Functions | |
mxArray_sparse (mxClassID id_arg, mwSize m, mwSize n, mwSize nzmax_arg, mxComplexity flag=mxREAL) | |
~mxArray_sparse (void) | |
int | add_field (const char *) |
char * | array_to_string (void) const |
virtual mxArray * | as_mxArray (void) const |
virtual mxArray * | as_mxArray (void) const |
octave_value | as_octave_value (void) const |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
mxArray_base * | dup (void) const |
mxArray * | get_cell (mwIndex) const |
mxClassID | get_class_id (void) const |
const char * | get_class_name (void) const |
void * | get_data (void) const |
mwSize * | get_dimensions (void) const |
size_t | get_element_size (void) const |
mxArray * | get_field_by_number (mwIndex, int) const |
const char * | get_field_name_by_number (int) const |
int | get_field_number (const char *) const |
void * | get_imag_data (void) const |
mwIndex * | get_ir (void) const |
mwIndex * | get_jc (void) const |
mwSize | get_m (void) const |
mwSize | get_n (void) const |
mwSize | get_number_of_dimensions (void) const |
mwSize | get_number_of_elements (void) const |
int | get_number_of_fields (void) const |
mwSize | get_nzmax (void) const |
double | get_scalar (void) const |
int | get_string (char *, mwSize) const |
int | is_cell (void) const |
int | is_char (void) const |
virtual int | is_class (const char *name_arg) const |
virtual int | is_class (const char *name_arg) const |
int | is_complex (void) const |
int | is_double (void) const |
int | is_empty (void) const |
int | is_function_handle (void) const |
int | is_int16 (void) const |
int | is_int32 (void) const |
int | is_int64 (void) const |
int | is_int8 (void) const |
int | is_logical (void) const |
virtual int | is_logical_scalar (void) const |
virtual int | is_logical_scalar (void) const |
int | is_logical_scalar_true (void) const |
int | is_numeric (void) const |
virtual bool | is_octave_value (void) const |
virtual bool | is_octave_value (void) const |
int | is_single (void) const |
int | is_sparse (void) const |
int | is_struct (void) const |
int | is_uint16 (void) const |
int | is_uint32 (void) const |
int | is_uint64 (void) const |
int | is_uint8 (void) const |
virtual mxArray * | mutate (void) const |
virtual mxArray * | mutate (void) const |
virtual bool | mutation_needed (void) const |
virtual bool | mutation_needed (void) const |
void | remove_field (int) |
void | set_cell (mwIndex, mxArray *) |
void | set_class_name (const char *name_arg) |
void | set_data (void *pr_arg) |
void | set_dimensions (mwSize *dims_arg, mwSize ndims_arg) |
void | set_field_by_number (mwIndex, int, mxArray *) |
void | set_imag_data (void *pi_arg) |
void | set_ir (mwIndex *ir_arg) |
void | set_jc (mwIndex *jc_arg) |
void | set_m (mwSize m) |
void | set_n (mwSize n) |
void | set_nzmax (mwSize nzmax_arg) |
Protected Member Functions | |
dim_vector | dims_to_dim_vector (void) const |
void | error (const char *msg) const |
void | error (const char *msg) const |
Private Member Functions | |
mxArray_sparse (const mxArray_sparse &val) | |
mxArray_sparse & | operator= (const mxArray_sparse &) |
Private Attributes | |
mwIndex * | ir |
mwIndex * | jc |
mwSize | nzmax |
void * | pi |
void * | pr |
|
inline |
|
inlineprivate |
Definition at line 1529 of file mex.cc.
References mxArray_matlab::get_element_size(), mxArray_matlab::get_n(), ir, jc, pi, and pr.
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 860 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_number.
Definition at line 906 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 134 of file mxarray.h.
Referenced by mxArray::dup().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 134 of file mxarray.in.h.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1439 of file mex.cc.
References mxArray_matlab::dims_to_dim_vector(), mxArray_base::error(), mxArray_matlab::get_class_id(), mxArray_matlab::get_m(), mxArray_matlab::get_n(), ir, jc, mxDOUBLE_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, nzmax, panic_impossible, pi, pr, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 912 of file mex.cc.
References calc_single_subscript_internal(), mxArray_matlab::dims, and mxArray_matlab::ndims.
|
inlineprotectedinherited |
Definition at line 952 of file mex.cc.
References d, mxArray_matlab::get_dimensions(), mxArray_matlab::get_number_of_dimensions(), and dim_vector::resize().
Referenced by mxArray_number::as_octave_value(), as_octave_value(), mxArray_struct::as_octave_value(), and mxArray_cell::as_octave_value().
|
inlinevirtual |
|
protectedinherited |
Definition at line 108 of file mex.cc.
Referenced by as_octave_value(), mxArray_number::int_to_ov(), mxArray_base::invalid_type_error(), and mxArray_matlab::invalid_type_error().
|
protectedinherited |
Reimplemented from mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 788 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 756 of file mex.cc.
References mxArray_matlab::id.
Referenced by mxArray_number::as_octave_value(), as_octave_value(), and mxArray_number::get_scalar().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 758 of file mex.cc.
References mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, and mxUINT8_CLASS.
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 730 of file mex.cc.
References mxArray_matlab::dims.
Referenced by mxArray_matlab::dims_to_dim_vector(), and mxArray_number::mxArray_number().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 917 of file mex.cc.
References mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, and mxUINT8_CLASS.
Referenced by mxArray_number::mxArray_number(), and mxArray_sparse().
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 871 of file mex.cc.
References mxArray_matlab::invalid_type_error().
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 889 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 718 of file mex.cc.
References mxArray_matlab::dims.
Referenced by as_octave_value().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 720 of file mex.cc.
References mxArray_matlab::dims, and mxArray_matlab::ndims.
Referenced by as_octave_value(), and mxArray_sparse().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 732 of file mex.cc.
References mxArray_matlab::ndims.
Referenced by mxArray_matlab::dims_to_dim_vector().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 744 of file mex.cc.
References mxArray_matlab::dims, and mxArray_matlab::ndims.
Referenced by mxArray_struct::add_field(), mxArray_number::array_to_string(), mxArray_number::as_octave_value(), mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), mxArray_cell::get_cell(), mxArray_number::get_string(), mxArray_number::int_to_ov(), mxArray_matlab::is_empty(), mxArray_cell::mxArray_cell(), mxArray_number::mxArray_number(), mxArray_struct::mxArray_struct(), mxArray_struct::remove_field(), mxArray_cell::set_cell(), mxArray_cell::~mxArray_cell(), and mxArray_struct::~mxArray_struct().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 883 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_number.
Definition at line 799 of file mex.cc.
References mxArray_matlab::invalid_type_error().
Implements mxArray_base.
Reimplemented in mxArray_number.
Definition at line 900 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Definition at line 144 of file mxarray.h.
References mxArray_base::get_class_name().
Referenced by mxArray::is_class().
Definition at line 144 of file mxarray.in.h.
References mxArray_base::get_class_name().
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 754 of file mex.cc.
References mxArray_matlab::get_number_of_elements().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Definition at line 188 of file mxarray.h.
References mxArray_base::get_number_of_elements(), and mxArray_base::is_logical().
Referenced by mxArray::is_logical_scalar(), mxArray_octave_value::is_logical_scalar_true(), and mxArray_matlab::is_logical_scalar_true().
|
inlinevirtualinherited |
Definition at line 188 of file mxarray.in.h.
References mxArray_base::get_number_of_elements(), and mxArray_base::is_logical().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 712 of file mex.cc.
References mxArray_matlab::get_data(), and mxArray_base::is_logical_scalar().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 689 of file mex.cc.
References mxDOUBLE_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxSINGLE_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, and mxUINT8_CLASS.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 138 of file mxarray.in.h.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 138 of file mxarray.h.
Referenced by mxArray::is_octave_value(), and mxArray::maybe_mutate().
|
inlinevirtualinherited |
|
inlinevirtual |
Reimplemented from mxArray_matlab.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 274 of file mxarray.h.
Referenced by mxArray::maybe_mutate(), and mxArray::mutate().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 274 of file mxarray.in.h.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 272 of file mxarray.in.h.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 272 of file mxarray.h.
Referenced by mxArray::mutation_needed().
|
private |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 866 of file mex.cc.
References mxArray_matlab::invalid_type_error().
Implements mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 794 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 781 of file mex.cc.
References mxArray_matlab::class_name, mxArray::malloc(), and mxFree().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 738 of file mex.cc.
References mxArray_matlab::dims, and mxArray_matlab::ndims.
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 877 of file mex.cc.
References mxArray_matlab::invalid_type_error().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtual |
|
private |
Definition at line 1526 of file mex.cc.
Referenced by as_octave_value(), get_ir(), mxArray_sparse(), set_ir(), and ~mxArray_sparse().
|
private |
Definition at line 1527 of file mex.cc.
Referenced by as_octave_value(), get_jc(), mxArray_sparse(), set_jc(), and ~mxArray_sparse().
|
private |
Definition at line 1522 of file mex.cc.
Referenced by as_octave_value(), get_nzmax(), and set_nzmax().
|
private |
Definition at line 1525 of file mex.cc.
Referenced by as_octave_value(), get_imag_data(), is_complex(), mxArray_sparse(), set_imag_data(), and ~mxArray_sparse().
|
private |
Definition at line 1524 of file mex.cc.
Referenced by as_octave_value(), get_data(), mxArray_sparse(), set_data(), and ~mxArray_sparse().