Mercurial > octave-nkf
annotate build-aux/find-files-with-tests.sh @ 20643:d6d04088ac9e
nbininv.m: Increase speed (85X) and accuracy of function (bug #34363).
* nbininv.m: Call new function scalar_nbininv to calculate nbininv for scalar.
If there are still uncalculated values then call bin_search_nbininv. Call
bin_search_nbininv directly for vectors. Add more BIST tests.
* nbininv.m (scalar_binoinv): New subfunction to calculate nbininv for scalar x.
Stops when x > 1000.
* nbininv.m (bin_search_nbininv): New subfunction to do binary search for nbininv.
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sun, 11 Oct 2015 20:33:37 -0700 |
parents | 43e6415393ff |
children |
rev | line source |
---|---|
16023
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 #! /bin/sh |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 set -e |
16132
43e6415393ff
build: check for grep in configure and then use it in build process.
Rik <rik@octave.org>
parents:
16023
diff
changeset
|
4 GREP=${GREP:-grep} |
16023
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 SED=${SED:-sed} |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 srcdir="$1" |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 shift |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 for arg |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 do |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 if [ -f "$arg" ]; then |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 file="$arg" |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 else |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 file="$srcdir/$arg" |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 fi |
16132
43e6415393ff
build: check for grep in configure and then use it in build process.
Rik <rik@octave.org>
parents:
16023
diff
changeset
|
17 if [ "`$GREP -l '^%!' $file`" ]; then |
16023
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 echo "$file" | $SED "s,\\$srcdir/,,"; |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 fi |
98fc95793699
missing file for commit 5b2126a8c84f
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 done |