Skip to content

Commit 4654aa1

Browse files
committed
update README.md list of docs
1 parent c2308fc commit 4654aa1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ If you prefer to read text files, the source to generate the above documentation
3838
- `docs/c_gpu.rst` : documentation of C++/C function API for GPU library
3939
- `docs/opts.rst` : optional parameters
4040
- `docs/error.rst` : error codes
41-
- `docs/trouble.rst` : troubleshooting advice
41+
- `docs/trouble.rst` : troubleshooting and accuracy advice
42+
- `docs/performance.rst` : CPU timing benchmarks compared to older versions
4243
- `docs/tut.rst` and `tutorial/*` : tutorial application examples
4344
- `docs/fortran.rst` : usage examples from Fortran, documentation of interface
4445
- `docs/matlab.rst` and `docs/matlabhelp.raw` : using the MATLAB/Octave interface
4546
- `docs/python.rst` and `python/*/_interfaces.py` : using the Python interface
4647
- `docs/python_gpu.rst` : Python interface to GPU library
4748
- `docs/julia.rst` : information for Julia users
49+
- `docs/nfft_migr.rst` and `docs/cufinufft_migration` : guides for migration
50+
- `docs/impl_gpu.rst`: implementation notes for GPU code
4851
- `docs/devnotes.rst`: notes/guide for developers
4952
- `docs/related.rst` : other recommended NUFFT packages
5053
- `docs/users.rst` : some known users of FINUFFT, dependent packages

test/testutils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ int main(int argc, char *argv[]) {
8383
}
8484
constexpr FLT EPSILON = std::numeric_limits<FLT>::epsilon();
8585
FLT relerr = 2.0 * EPSILON; // 1 ULP, fine since 1.0 rep exactly
86-
if (abs(infnorm(M, &a[0]) - 1.0) > relerr) return 1;
87-
if (abs(twonorm(M, &a[0]) - sqrt((FLT)M)) > relerr * sqrt((FLT)M)) return 1;
86+
if (std::abs(infnorm(M, &a[0]) - 1.0) > relerr) return 1;
87+
if (std::abs(twonorm(M, &a[0]) - std::sqrt((FLT)M)) > relerr * std::sqrt((FLT)M)) return 1;
8888
b[0] = CPX(0.0, 0.0); // perturb b from a
89-
if (abs(errtwonorm(M, &a[0], &b[0]) - 1.0) > relerr) return 1;
90-
if (abs(sqrt((FLT)M) * relerrtwonorm(M, &a[0], &b[0]) - 1.0) > relerr) return 1;
89+
if (std::abs(errtwonorm(M, &a[0], &b[0]) - 1.0) > relerr) return 1;
90+
if (std::abs(std::sqrt((FLT)M) * relerrtwonorm(M, &a[0], &b[0]) - 1.0) > relerr) return 1;
9191

9292
#ifdef SINGLE
9393
printf("testutilsf passed.\n");

0 commit comments

Comments
 (0)