GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
mxArray_sparse Class Reference
Inheritance diagram for mxArray_sparse:
Inheritance graph
[legend]
Collaboration diagram for mxArray_sparse:
Collaboration graph
[legend]

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 *)
chararray_to_string (void) const
virtual mxArrayas_mxArray (void) const
virtual mxArrayas_mxArray (void) const
octave_value as_octave_value (void) const
mwIndex calc_single_subscript (mwSize nsubs, mwIndex *subs) const
mxArray_basedup (void) const
mxArrayget_cell (mwIndex) const
mxClassID get_class_id (void) const
const charget_class_name (void) const
voidget_data (void) const
mwSizeget_dimensions (void) const
size_t get_element_size (void) const
mxArrayget_field_by_number (mwIndex, int) const
const charget_field_name_by_number (int) const
int get_field_number (const char *) const
voidget_imag_data (void) const
mwIndexget_ir (void) const
mwIndexget_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 mxArraymutate (void) const
virtual mxArraymutate (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_sparseoperator= (const mxArray_sparse &)

Private Attributes

mwIndexir
mwIndexjc
mwSize nzmax
voidpi
voidpr

Detailed Description

Definition at line 1392 of file mex.cc.

Constructor & Destructor Documentation

mxArray_sparse::mxArray_sparse ( mxClassID  id_arg,
mwSize  m,
mwSize  n,
mwSize  nzmax_arg,
mxComplexity  flag = mxREAL 
)
inline

Definition at line 1396 of file mex.cc.

Referenced by dup().

mxArray_sparse::~mxArray_sparse ( void  )
inline

Definition at line 1407 of file mex.cc.

References ir, jc, mxFree(), pi, and pr.

mxArray_sparse::mxArray_sparse ( const mxArray_sparse val)
inlineprivate

Definition at line 1529 of file mex.cc.

References mxArray_matlab::get_element_size(), mxArray_matlab::get_n(), ir, jc, nzmax, pi, and pr.

Member Function Documentation

int mxArray_matlab::add_field ( const char )
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 860 of file mex.cc.

References mxArray_matlab::invalid_type_error().

char* mxArray_matlab::array_to_string ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_number.

Definition at line 906 of file mex.cc.

References mxArray_matlab::invalid_type_error().

virtual mxArray* mxArray_base::as_mxArray ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 134 of file mxarray.h.

Referenced by mxArray::dup().

virtual mxArray* mxArray_base::as_mxArray ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 134 of file mxarray.in.h.

octave_value mxArray_sparse::as_octave_value ( void  ) const
inlinevirtual
mwIndex mxArray_matlab::calc_single_subscript ( mwSize  nsubs,
mwIndex subs 
) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 912 of file mex.cc.

References calc_single_subscript_internal(), mxArray_matlab::dims, and mxArray_matlab::ndims.

dim_vector mxArray_matlab::dims_to_dim_vector ( void  ) const
inlineprotectedinherited
mxArray_base* mxArray_sparse::dup ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 1405 of file mex.cc.

References mxArray_sparse().

void mxArray_base::error ( const char msg) const
protectedinherited
void mxArray_base::error ( const char msg) const
protectedinherited
mxArray* mxArray_matlab::get_cell ( mwIndex  ) const
inlinevirtualinherited

Reimplemented from mxArray_base.

Reimplemented in mxArray_cell.

Definition at line 788 of file mex.cc.

References mxArray_matlab::invalid_type_error().

mxClassID mxArray_matlab::get_class_id ( void  ) const
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().

const char* mxArray_matlab::get_class_name ( void  ) const
inlinevirtualinherited
void* mxArray_sparse::get_data ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1419 of file mex.cc.

References pr.

mwSize* mxArray_matlab::get_dimensions ( void  ) const
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().

size_t mxArray_matlab::get_element_size ( void  ) const
inlinevirtualinherited
mxArray* mxArray_matlab::get_field_by_number ( mwIndex  ,
int   
) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 871 of file mex.cc.

References mxArray_matlab::invalid_type_error().

const char* mxArray_matlab::get_field_name_by_number ( int  ) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 889 of file mex.cc.

References mxArray_matlab::invalid_type_error().

int mxArray_matlab::get_field_number ( const char ) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 895 of file mex.cc.

void* mxArray_sparse::get_imag_data ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1421 of file mex.cc.

References pi.

mwIndex* mxArray_sparse::get_ir ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1427 of file mex.cc.

References ir.

mwIndex* mxArray_sparse::get_jc ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1429 of file mex.cc.

References jc.

mwSize mxArray_matlab::get_m ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 718 of file mex.cc.

References mxArray_matlab::dims.

Referenced by as_octave_value().

mwSize mxArray_matlab::get_n ( void  ) const
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().

mwSize mxArray_matlab::get_number_of_dimensions ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 732 of file mex.cc.

References mxArray_matlab::ndims.

Referenced by mxArray_matlab::dims_to_dim_vector().

mwSize mxArray_matlab::get_number_of_elements ( void  ) const
inlinevirtualinherited
int mxArray_matlab::get_number_of_fields ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 883 of file mex.cc.

References mxArray_matlab::invalid_type_error().

mwSize mxArray_sparse::get_nzmax ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1431 of file mex.cc.

References nzmax.

double mxArray_matlab::get_scalar ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_number.

Definition at line 799 of file mex.cc.

References mxArray_matlab::invalid_type_error().

int mxArray_matlab::get_string ( char ,
mwSize   
) const
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_number.

Definition at line 900 of file mex.cc.

References mxArray_matlab::invalid_type_error().

int mxArray_matlab::is_cell ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 669 of file mex.cc.

References mxCELL_CLASS.

int mxArray_matlab::is_char ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 671 of file mex.cc.

References mxCHAR_CLASS.

virtual int mxArray_base::is_class ( const char name_arg) const
inlinevirtualinherited

Definition at line 144 of file mxarray.h.

References mxArray_base::get_class_name().

Referenced by mxArray::is_class().

virtual int mxArray_base::is_class ( const char name_arg) const
inlinevirtualinherited

Definition at line 144 of file mxarray.in.h.

References mxArray_base::get_class_name().

int mxArray_sparse::is_complex ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1415 of file mex.cc.

References pi.

int mxArray_matlab::is_double ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 675 of file mex.cc.

References mxDOUBLE_CLASS.

int mxArray_matlab::is_empty ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 754 of file mex.cc.

References mxArray_matlab::get_number_of_elements().

int mxArray_matlab::is_function_handle ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 677 of file mex.cc.

References mxFUNCTION_CLASS.

int mxArray_matlab::is_int16 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 679 of file mex.cc.

References mxINT16_CLASS.

int mxArray_matlab::is_int32 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 681 of file mex.cc.

References mxINT32_CLASS.

int mxArray_matlab::is_int64 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 683 of file mex.cc.

References mxINT64_CLASS.

int mxArray_matlab::is_int8 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 685 of file mex.cc.

References mxINT8_CLASS.

int mxArray_matlab::is_logical ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 687 of file mex.cc.

References mxLOGICAL_CLASS.

virtual int mxArray_base::is_logical_scalar ( void  ) const
inlinevirtualinherited
virtual int mxArray_base::is_logical_scalar ( void  ) const
inlinevirtualinherited
int mxArray_matlab::is_logical_scalar_true ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 712 of file mex.cc.

References mxArray_matlab::get_data(), and mxArray_base::is_logical_scalar().

int mxArray_matlab::is_numeric ( void  ) const
inlinevirtualinherited
virtual bool mxArray_base::is_octave_value ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 138 of file mxarray.in.h.

virtual bool mxArray_base::is_octave_value ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 138 of file mxarray.h.

Referenced by mxArray::is_octave_value(), and mxArray::maybe_mutate().

int mxArray_matlab::is_single ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 698 of file mex.cc.

References mxSINGLE_CLASS.

int mxArray_sparse::is_sparse ( void  ) const
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1417 of file mex.cc.

int mxArray_matlab::is_struct ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 702 of file mex.cc.

References mxSTRUCT_CLASS.

int mxArray_matlab::is_uint16 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 704 of file mex.cc.

References mxUINT16_CLASS.

int mxArray_matlab::is_uint32 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 706 of file mex.cc.

References mxUINT32_CLASS.

int mxArray_matlab::is_uint64 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 708 of file mex.cc.

References mxUINT64_CLASS.

int mxArray_matlab::is_uint8 ( void  ) const
inlinevirtualinherited

Implements mxArray_base.

Definition at line 710 of file mex.cc.

References mxUINT8_CLASS.

virtual mxArray* mxArray_base::mutate ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 274 of file mxarray.h.

Referenced by mxArray::maybe_mutate(), and mxArray::mutate().

virtual mxArray* mxArray_base::mutate ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 274 of file mxarray.in.h.

virtual bool mxArray_base::mutation_needed ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 272 of file mxarray.in.h.

virtual bool mxArray_base::mutation_needed ( void  ) const
inlinevirtualinherited

Reimplemented in mxArray_octave_value.

Definition at line 272 of file mxarray.h.

Referenced by mxArray::mutation_needed().

mxArray_sparse& mxArray_sparse::operator= ( const mxArray_sparse )
private
void mxArray_matlab::remove_field ( int  )
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 866 of file mex.cc.

References mxArray_matlab::invalid_type_error().

void mxArray_matlab::set_cell ( mwIndex  ,
mxArray  
)
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_cell.

Definition at line 794 of file mex.cc.

References mxArray_matlab::invalid_type_error().

void mxArray_matlab::set_class_name ( const char name_arg)
inlinevirtualinherited

Implements mxArray_base.

Definition at line 781 of file mex.cc.

References mxArray_matlab::class_name, mxArray::malloc(), and mxFree().

void mxArray_sparse::set_data ( void pr_arg)
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1423 of file mex.cc.

References pr.

void mxArray_matlab::set_dimensions ( mwSize dims_arg,
mwSize  ndims_arg 
)
inlinevirtualinherited

Implements mxArray_base.

Definition at line 738 of file mex.cc.

References mxArray_matlab::dims, and mxArray_matlab::ndims.

void mxArray_matlab::set_field_by_number ( mwIndex  ,
int  ,
mxArray  
)
inlinevirtualinherited

Implements mxArray_base.

Reimplemented in mxArray_struct.

Definition at line 877 of file mex.cc.

References mxArray_matlab::invalid_type_error().

void mxArray_sparse::set_imag_data ( void pi_arg)
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1425 of file mex.cc.

References pi.

void mxArray_sparse::set_ir ( mwIndex ir_arg)
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1433 of file mex.cc.

References ir.

void mxArray_sparse::set_jc ( mwIndex jc_arg)
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1435 of file mex.cc.

References jc.

void mxArray_matlab::set_m ( mwSize  m)
inlinevirtualinherited

Implements mxArray_base.

Definition at line 734 of file mex.cc.

References mxArray_matlab::dims.

void mxArray_matlab::set_n ( mwSize  n)
inlinevirtualinherited

Implements mxArray_base.

Definition at line 736 of file mex.cc.

References mxArray_matlab::dims.

void mxArray_sparse::set_nzmax ( mwSize  nzmax_arg)
inlinevirtual

Reimplemented from mxArray_matlab.

Definition at line 1437 of file mex.cc.

References nzmax.

Member Data Documentation

mwIndex* mxArray_sparse::ir
private

Definition at line 1526 of file mex.cc.

Referenced by as_octave_value(), get_ir(), mxArray_sparse(), set_ir(), and ~mxArray_sparse().

mwIndex* mxArray_sparse::jc
private

Definition at line 1527 of file mex.cc.

Referenced by as_octave_value(), get_jc(), mxArray_sparse(), set_jc(), and ~mxArray_sparse().

mwSize mxArray_sparse::nzmax
private

Definition at line 1522 of file mex.cc.

Referenced by as_octave_value(), get_nzmax(), mxArray_sparse(), and set_nzmax().

void* mxArray_sparse::pi
private
void* mxArray_sparse::pr
private

Definition at line 1524 of file mex.cc.

Referenced by as_octave_value(), get_data(), mxArray_sparse(), set_data(), and ~mxArray_sparse().


The documentation for this class was generated from the following file: