GNU Octave  3.8.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-dld.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

 DEFUN_DLD (__dsearchn__, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{idx}, @var{d}] =} dsearch (@var{x}, @var{xi})\n\ Undocumented internal function.\n\ @end deftypefn")

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 DEFUN_DLD().

Function Documentation

DEFUN_DLD ( __dsearchn__  ,
args   
)