GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
__dsearchn__.cc File Reference
#include <cmath>
#include <string>
#include "defun.h"
#include "error.h"
#include "ovl.h"
Include dependency graph for __dsearchn__.cc:

Go to the source code of this file.

Macros

#define DIST(dd, y, yi, m)
 

Functions

OCTAVE_EXPORT octave_value_list F__dsearchn__ (const octave_value_list &args, int)
 

Macro Definition Documentation

◆ DIST

#define DIST (   dd,
  y,
  yi,
  m 
)
Value:
dd = 0.0; \
for (octave_idx_type k = 0; k < m; k++) \
{ \
double yd = y[k] - yi[k]; \
dd += yd * yd; \
} \
dd = sqrt (dd)
T octave_idx_type m
Definition: mx-inlines.cc:773

Function Documentation

◆ F__dsearchn__()

OCTAVE_EXPORT octave_value_list F__dsearchn__ ( const octave_value_list args,
int   
)

Definition at line 42 of file __dsearchn__.cc.

References d, DIST, error(), Array< T >::fortran_vec(), n, ovl(), print_usage(), x, and xi.