GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
idx-vector.cc File Reference
#include <cstdlib>
#include <iostream>
#include "idx-vector.h"
#include "Array.h"
#include "Array-util.h"
#include "Sparse.h"
#include "Range.h"
#include "oct-locbuf.h"
#include "lo-error.h"
#include "lo-mappers.h"
Include dependency graph for idx-vector.cc:

Go to the source code of this file.

Macros

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST(T)
 

Functions

octave_idx_type convert_index (octave_idx_type i, bool &conv_error, octave_idx_type &ext)
 
octave_idx_type convert_index (double x, bool &conv_error, octave_idx_type &ext)
 
octave_idx_type convert_index (float x, bool &conv_error, octave_idx_type &ext)
 
template<typename T >
octave_idx_type convert_index (octave_int< T > x, bool &conv_error, octave_idx_type &ext)
 
static void err_index_out_of_range (void)
 
static OCTAVE_NORETURN void err_invalid_range (void)
 

Macro Definition Documentation

◆ INSTANTIATE_SCALAR_VECTOR_REP_CONST

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST (   T)
Value:
N Dimensional Array with copy-on-write semantics.
Definition: Array.h:125

Definition at line 1315 of file idx-vector.cc.

Function Documentation

◆ convert_index() [1/4]

octave_idx_type convert_index ( octave_idx_type  i,
bool conv_error,
octave_idx_type ext 
)
inline

◆ convert_index() [2/4]

octave_idx_type convert_index ( double  x,
bool conv_error,
octave_idx_type ext 
)
inline

Definition at line 239 of file idx-vector.cc.

References convert_index(), octave::err_invalid_index(), i, and x.

◆ convert_index() [3/4]

octave_idx_type convert_index ( float  x,
bool conv_error,
octave_idx_type ext 
)
inline

Definition at line 250 of file idx-vector.cc.

References convert_index(), and x.

◆ convert_index() [4/4]

template<typename T >
octave_idx_type convert_index ( octave_int< T >  x,
bool conv_error,
octave_idx_type ext 
)
inline

Definition at line 257 of file idx-vector.cc.

References convert_index(), i, value, and x.

◆ err_index_out_of_range()

static void err_index_out_of_range ( void  )
static

◆ err_invalid_range()

static OCTAVE_NORETURN void err_invalid_range ( void  )
static

Definition at line 45 of file idx-vector.cc.

Referenced by idx_vector::idx_range_rep::idx_range_rep().