GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
idx-vector.cc File Reference
#include <cinttypes>
#include <cstdlib>
#include <ostream>
#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"

Go to the source code of this file.

Macros

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST(T)
 

Functions

octave_idx_type convert_index (double x, octave_idx_type &ext)
 
octave_idx_type convert_index (float x, octave_idx_type &ext)
 
octave_idx_type convert_index (octave_idx_type i, octave_idx_type &ext)
 
template<typename T >
octave_idx_type convert_index (octave_int< T > x, octave_idx_type &ext)
 

Macro Definition Documentation

◆ INSTANTIATE_SCALAR_VECTOR_REP_CONST

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST (   T)
Value:
template OCTAVE_API idx_vector::idx_scalar_rep::idx_scalar_rep (T); \
template OCTAVE_API idx_vector::idx_vector_rep::idx_vector_rep (const Array<T>&);
#define OCTAVE_API
Definition: main.cc:55

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

Function Documentation

◆ convert_index() [1/4]

octave_idx_type convert_index ( double  x,
octave_idx_type ext 
)
inline

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

References convert_index(), err_invalid_index(), and x.

◆ convert_index() [2/4]

octave_idx_type convert_index ( float  x,
octave_idx_type ext 
)
inline

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

References convert_index(), and x.

◆ convert_index() [3/4]

octave_idx_type convert_index ( octave_idx_type  i,
octave_idx_type ext 
)
inline

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

References err_invalid_index().

Referenced by convert_index().

◆ convert_index() [4/4]

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

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

References convert_index(), octave_int< T >::value(), and x.