GNU Octave  4.0.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
Functions
sub2ind.cc File Reference
#include "Array-util.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
Include dependency graph for sub2ind.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list Find2sub (const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fsub2ind (const octave_value_list &args, int)
 
static dim_vector get_dim_vector (const octave_value &val, const char *name)
 

Function Documentation

OCTAVE_EXPORT octave_value_list Find2sub ( const octave_value_list args,
int  nargout 
)
OCTAVE_EXPORT octave_value_list Fsub2ind ( const octave_value_list args,
int   
)

Definition at line 83 of file sub2ind.cc.

References error(), error_state, get_dim_vector(), print_usage(), dim_vector::redim(), and sub2ind().

static dim_vector get_dim_vector ( const octave_value val,
const char name 
)
static

Definition at line 38 of file sub2ind.cc.

References error(), Array< T >::length(), max(), dim_vector::resize(), and octave_value::row_vector_value().

Referenced by Find2sub(), and Fsub2ind().