GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
__dsearchn__.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include "lo-math.h"
#include "defun.h"
#include "error.h"
#include "oct-obj.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

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

Referenced by F__dsearchn__().

Function Documentation

OCTAVE_EXPORT octave_value_list F__dsearchn__ ( const octave_value_list args,
int   
)