GNU Octave  9.1.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"

Go to the source code of this file.

Macros

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

Functions

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:781

Function Documentation

◆ F__dsearchn__()

octave_value_list F__dsearchn__ ( const octave_value_list args,
int   
)

Definition at line 44 of file __dsearchn__.cc.

References print_usage(), and x.