GNU Octave  6.2.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 dependency graph for __lin_interpn__.cc:

Go to the source code of this file.

Functions

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

Function Documentation

◆ F__lin_interpn__()

OCTAVE_EXPORT octave_value_list F__lin_interpn__ ( const octave_value_list args,
int   
)

Definition at line 268 of file __lin_interpn__.cc.

References error(), n, OCTAVE_LOCAL_BUFFER, print_usage(), retval, and V.

◆ isvector()

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

Definition at line 42 of file __lin_interpn__.cc.

References dim_vector::ndims().

Referenced by lin_interpn().

◆ lin_interpn() [1/2]

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

Definition at line 130 of file __lin_interpn__.cc.

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

Referenced by lin_interpn().

◆ lin_interpn() [2/2]

template<typename T , typename M >
octave_value lin_interpn ( int  n,
M X,
const M  V,
M Y 
)

Definition at line 188 of file __lin_interpn__.cc.

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

◆ lookup()

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