GNU Octave  6.2.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 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 
)

◆ Fsub2ind()

◆ get_dim_vector()

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

Definition at line 41 of file sub2ind.cc.

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

Referenced by Find2sub(), and Fsub2ind().