diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 21:19:57 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | 2e4d666eec1a372d4b64c527d6c4945ad98d2b58 (patch) | |
tree | a3a61d346c3d4e5b590b08db446d17307df0e3c5 /include/chilbert/chilbert.hpp | |
parent | bf05ef949750cfca6e001b0f767cd2173441fc8c (diff) | |
download | chilbert-2e4d666eec1a372d4b64c527d6c4945ad98d2b58.tar.gz chilbert-2e4d666eec1a372d4b64c527d6c4945ad98d2b58.tar.bz2 chilbert-2e4d666eec1a372d4b64c527d6c4945ad98d2b58.zip |
Update clang-format configuration
Diffstat (limited to 'include/chilbert/chilbert.hpp')
-rw-r--r-- | include/chilbert/chilbert.hpp | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/include/chilbert/chilbert.hpp b/include/chilbert/chilbert.hpp index c55fc14..36b94cc 100644 --- a/include/chilbert/chilbert.hpp +++ b/include/chilbert/chilbert.hpp @@ -33,8 +33,9 @@ namespace chilbert { * @param n Number of dimensions. * @param[out] h Hilbert Index. */ -template <class P, class H> -inline void coords_to_index(const P& p, size_t m, size_t n, H& h); +template<class P, class H> +inline void +coords_to_index(const P& p, size_t m, size_t n, H& h); /** Map the Hilbert Index `p` to a point. * @@ -46,8 +47,9 @@ inline void coords_to_index(const P& p, size_t m, size_t n, H& h); * @param n Number of dimensions. * @param h Hilbert Index. */ -template <class P, class H> -inline void index_to_coords(P& p, size_t m, size_t n, const H& h); +template<class P, class H> +inline void +index_to_coords(P& p, size_t m, size_t n, const H& h); /** Map the point `p` to a Compact Hilbert Index. * @@ -61,13 +63,14 @@ inline void index_to_coords(P& p, size_t m, size_t n, const H& h); * @param M Optional net precision (sum of `ms`), the size of `hc` in bits. * @param m Optional largest precision in `m`. */ -template <class P, class H> -inline void coords_to_compact_index(const P& p, - const size_t* ms, - size_t n, - H& hc, - size_t M = 0, - size_t m = 0); +template<class P, class H> +inline void +coords_to_compact_index(const P& p, + const size_t* ms, + size_t n, + H& hc, + size_t M = 0, + size_t m = 0); /** Map the Compact Hilbert Index `hc` to a point. * @@ -81,13 +84,14 @@ inline void coords_to_compact_index(const P& p, * @param M Optional net precision (sum of `ms`), the size of `hc` in bits. * @param m Optional largest precision in `m`. */ -template <class P, class H> -inline void compact_index_to_coords(P& p, - const size_t* ms, - size_t n, - const H& hc, - size_t M = 0, - size_t m = 0); +template<class P, class H> +inline void +compact_index_to_coords(P& p, + const size_t* ms, + size_t n, + const H& hc, + size_t M = 0, + size_t m = 0); } // namespace chilbert |