GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
__lin_interpn__.cc File Reference
#include "lo-ieee.h"
#include "dNDArray.h"
#include "oct-locbuf.h"
#include "defun.h"
#include "error.h"
#include "ovl.h"
#include <type_traits>

Go to the source code of this file.

Functions

octave_value_list F__lin_interpn__ (const octave_value_list &args, int)
 
template<typename T >
bool isvector (const T &array)
 
template<typename T , typename DT >
void lin_interpn (int n, const octave_idx_type *size, const octave_idx_type *scale, octave_idx_type Ni, DT extrapval, const T **x, const DT *v, const T **y, DT *vi)
 
template<typename MT , typename DMT , typename DT >
octave_value lin_interpn (int n, MT *X, const DMT V, MT *Y, DT extrapval)
 
template<typename T >
octave_idx_type lookup (const T *x, octave_idx_type n, T y)
 

Function Documentation

◆ F__lin_interpn__()

octave_value_list F__lin_interpn__ ( const octave_value_list args,
int   
)

Definition at line 274 of file __lin_interpn__.cc.

References error(), lin_interpn(), n, OCTAVE_LOCAL_BUFFER, octave_NA, print_usage(), and V.

◆ isvector()

template<typename T >
bool isvector ( const T &  array)

Definition at line 46 of file __lin_interpn__.cc.

References dim_vector::ndims().

Referenced by lin_interpn().

◆ lin_interpn() [1/2]

template<typename T , typename DT >
void lin_interpn ( int  n,
const octave_idx_type size,
const octave_idx_type scale,
octave_idx_type  Ni,
DT  extrapval,
const T **  x,
const DT *  v,
const T **  y,
DT *  vi 
)

Definition at line 134 of file __lin_interpn__.cc.

References lookup(), m, n, OCTAVE_LOCAL_BUFFER, scale(), and x.

Referenced by F__lin_interpn__(), and lin_interpn().

◆ lin_interpn() [2/2]

template<typename MT , typename DMT , typename DT >
octave_value lin_interpn ( int  n,
MT *  X,
const DMT  V,
MT *  Y,
DT  extrapval 
)

Definition at line 192 of file __lin_interpn__.cc.

References error(), isvector(), lin_interpn(), n, OCTAVE_LOCAL_BUFFER, scale(), V, and x.

◆ lookup()

template<typename T >
octave_idx_type lookup ( const T *  x,
octave_idx_type  n,
y 
)