GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sub2ind.cc File Reference
#include "Array-util.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.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 OCTAVE_NAMESPACE_BEGIN dim_vector get_dim_vector (const octave_value &val, const char *name)
 

Function Documentation

◆ Find2sub()

OCTAVE_EXPORT octave_value_list Find2sub ( const octave_value_list args,
int  nargout 
)

Definition at line 260 of file sub2ind.cc.

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

◆ Fsub2ind()

OCTAVE_EXPORT octave_value_list Fsub2ind ( const octave_value_list args,
int   
)

Definition at line 111 of file sub2ind.cc.

References error(), error_with_id(), get_dim_vector(), ovl(), print_usage(), and sub2ind().

◆ get_dim_vector()

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