#include <iostream>
#include <fstream>
#include <string>
#include "lo-math.h"
#include "defun-dld.h"
#include "error.h"
#include "oct-obj.h"
Go to the source code of this file.
Defines | |
#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") |
#define DIST | ( | dd, | ||
y, | ||||
yi, | ||||
m | ||||
) |
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().
DEFUN_DLD | ( | __dsearchn__ | , | |
args | ||||
) |
Definition at line 37 of file __dsearchn__.cc.
References Array< T >::columns(), d, DIST, error(), error_state, Array< T >::fortran_vec(), print_usage(), Array< T >::rows(), x, and xi.