GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lookup.cc File Reference
#include <cctype>
#include <functional>
#include <algorithm>
#include "dNDArray.h"
#include "CNDArray.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "ov.h"

Go to the source code of this file.

Macros

#define INT_ARRAY_LOOKUP(TYPE)
 

Functions

octave_value_list Flookup (const octave_value_list &args, int)
 
template<typename T >
sortmode get_sort_mode (const Array< T > &array, typename octave_sort< T >::compare_fcn_type desc_comp=octave_sort< T >::descending_compare)
 

Macro Definition Documentation

◆ INT_ARRAY_LOOKUP

#define INT_ARRAY_LOOKUP (   TYPE)
Value:
(table.is_ ## TYPE ## _type () && y.is_ ## TYPE ## _type ()) \
retval = do_numeric_lookup (table.TYPE ## _array_value (), \
y.TYPE ## _array_value (), \
left_inf, right_inf, \
match_idx, match_bool);

Definition at line 71 of file lookup.cc.

Function Documentation

◆ Flookup()

◆ get_sort_mode()

template<typename T >
sortmode get_sort_mode ( const Array< T > &  array,
typename octave_sort< T >::compare_fcn_type  desc_comp = octave_sort<T>::descending_compare 
)
inline

Definition at line 56 of file lookup.cc.

References ASCENDING, DESCENDING, n, and Array< T, Alloc >::numel().