Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/__dsearchn__.cc @ 11553:01f703952eff
Improve docstrings for functions in DLD-FUNCTIONS directory.
Use same variable names in error() strings and in documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 Jan 2011 22:13:23 -0800 |
parents | fd0a3ac60b0e |
children | 12df7854fa7c |
comparison
equal
deleted
inserted
replaced
11552:6b6e9051ecb8 | 11553:01f703952eff |
---|---|
53 Matrix xi = args(1).matrix_value().transpose (); | 53 Matrix xi = args(1).matrix_value().transpose (); |
54 | 54 |
55 if (! error_state) | 55 if (! error_state) |
56 { | 56 { |
57 if (x.rows() != xi.rows() || x.columns() < 1) | 57 if (x.rows() != xi.rows() || x.columns() < 1) |
58 error ("__dsearch__: dimensional mismatch"); | 58 error ("__dsearch__: number of rows of X and XI must match"); |
59 else | 59 else |
60 { | 60 { |
61 octave_idx_type n = x.rows(); | 61 octave_idx_type n = x.rows(); |
62 octave_idx_type nx = x.columns(); | 62 octave_idx_type nx = x.columns(); |
63 octave_idx_type nxi = xi.columns(); | 63 octave_idx_type nxi = xi.columns(); |