Mercurial > octave
comparison libinterp/corefcn/__dsearchn__.cc @ 31319:6cf02f842e74
Backed out changeset 24e45a79bf3c
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Wed, 19 Oct 2022 12:14:09 -0400 |
parents | 24e45a79bf3c |
children | e88a07dec498 |
comparison
equal
deleted
inserted
replaced
31318:eba9d6d4cc41 | 31319:6cf02f842e74 |
---|---|
44 @end deftypefn */) | 44 @end deftypefn */) |
45 { | 45 { |
46 if (args.length () != 2) | 46 if (args.length () != 2) |
47 print_usage (); | 47 print_usage (); |
48 | 48 |
49 const auto& tmp0 = args(0).matrix_value (); | 49 Matrix x = args(0).matrix_value ().transpose (); |
50 const auto& tmp1 = args(1).matrix_value (); | 50 Matrix xi = args(1).matrix_value ().transpose (); |
51 Matrix x = tmp0.transpose (); | |
52 Matrix xi = tmp1.transpose (); | |
53 | 51 |
54 if (x.rows () != xi.rows () || x.columns () < 1) | 52 if (x.rows () != xi.rows () || x.columns () < 1) |
55 error ("__dsearchn__: number of rows of X and XI must match"); | 53 error ("__dsearchn__: number of rows of X and XI must match"); |
56 | 54 |
57 octave_idx_type n = x.rows (); | 55 octave_idx_type n = x.rows (); |