@topolab/tda 0.0.0-stage → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/CITATION.cff +72 -0
  3. package/LICENSE +21 -0
  4. package/README.md +100 -2
  5. package/SECURITY.md +34 -0
  6. package/THIRD_PARTY_LICENSES.md +697 -0
  7. package/dist/arrangement.d.ts +50 -0
  8. package/dist/arrangement.d.ts.map +1 -0
  9. package/dist/arrangement.js +63 -0
  10. package/dist/arrangement.js.map +1 -0
  11. package/dist/build_info.json +12 -0
  12. package/dist/check.d.ts +118 -0
  13. package/dist/check.d.ts.map +1 -0
  14. package/dist/check.js +298 -0
  15. package/dist/check.js.map +1 -0
  16. package/dist/complex.d.ts +543 -0
  17. package/dist/complex.d.ts.map +1 -0
  18. package/dist/complex.js +712 -0
  19. package/dist/complex.js.map +1 -0
  20. package/dist/diagram.d.ts +116 -0
  21. package/dist/diagram.d.ts.map +1 -0
  22. package/dist/diagram.js +238 -0
  23. package/dist/diagram.js.map +1 -0
  24. package/dist/diagram_of.d.ts +17 -0
  25. package/dist/diagram_of.d.ts.map +1 -0
  26. package/dist/diagram_of.js +40 -0
  27. package/dist/diagram_of.js.map +1 -0
  28. package/dist/experimental.d.ts +18 -0
  29. package/dist/experimental.d.ts.map +1 -0
  30. package/dist/experimental.js +16 -0
  31. package/dist/experimental.js.map +1 -0
  32. package/dist/flat.d.ts +64 -0
  33. package/dist/flat.d.ts.map +1 -0
  34. package/dist/flat.js +158 -0
  35. package/dist/flat.js.map +1 -0
  36. package/dist/index.d.ts +42 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +31 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/ladder/tda_ladder.d.ts +223 -0
  41. package/dist/ladder/tda_ladder.js +1360 -0
  42. package/dist/ladder/tda_ladder_bg.wasm +0 -0
  43. package/dist/ladder/tda_ladder_bg.wasm.d.ts +43 -0
  44. package/dist/ladder.d.ts +306 -0
  45. package/dist/ladder.d.ts.map +1 -0
  46. package/dist/ladder.js +607 -0
  47. package/dist/ladder.js.map +1 -0
  48. package/dist/load.d.ts +53 -0
  49. package/dist/load.d.ts.map +1 -0
  50. package/dist/load.js +173 -0
  51. package/dist/load.js.map +1 -0
  52. package/dist/memory.d.ts +58 -0
  53. package/dist/memory.d.ts.map +1 -0
  54. package/dist/memory.js +2 -0
  55. package/dist/memory.js.map +1 -0
  56. package/dist/persistence.d.ts +349 -0
  57. package/dist/persistence.d.ts.map +1 -0
  58. package/dist/persistence.js +478 -0
  59. package/dist/persistence.js.map +1 -0
  60. package/dist/pkg/tda_wasm.d.ts +13 -0
  61. package/dist/pkg/tda_wasm.js +2528 -0
  62. package/dist/prepared.d.ts +62 -0
  63. package/dist/prepared.d.ts.map +1 -0
  64. package/dist/prepared.js +81 -0
  65. package/dist/prepared.js.map +1 -0
  66. package/dist/rivet_input.d.ts +93 -0
  67. package/dist/rivet_input.d.ts.map +1 -0
  68. package/dist/rivet_input.js +132 -0
  69. package/dist/rivet_input.js.map +1 -0
  70. package/dist/source.d.ts +43 -0
  71. package/dist/source.d.ts.map +1 -0
  72. package/dist/source.js +99 -0
  73. package/dist/source.js.map +1 -0
  74. package/dist/tda.wasm +0 -0
  75. package/dist/two_parameter.d.ts +243 -0
  76. package/dist/two_parameter.d.ts.map +1 -0
  77. package/dist/two_parameter.js +275 -0
  78. package/dist/two_parameter.js.map +1 -0
  79. package/dist/types.d.ts +146 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/types.js +2 -0
  82. package/dist/types.js.map +1 -0
  83. package/dist/vineyard.d.ts +278 -0
  84. package/dist/vineyard.d.ts.map +1 -0
  85. package/dist/vineyard.js +236 -0
  86. package/dist/vineyard.js.map +1 -0
  87. package/package.json +77 -4
  88. package/src/arrangement.ts +96 -0
  89. package/src/check.ts +338 -0
  90. package/src/complex.ts +1179 -0
  91. package/src/diagram.ts +299 -0
  92. package/src/diagram_of.ts +40 -0
  93. package/src/experimental.ts +17 -0
  94. package/src/flat.ts +204 -0
  95. package/src/index.ts +181 -0
  96. package/src/ladder.ts +903 -0
  97. package/src/load.ts +201 -0
  98. package/src/memory.ts +58 -0
  99. package/src/persistence.ts +752 -0
  100. package/src/prepared.ts +111 -0
  101. package/src/rivet_input.ts +195 -0
  102. package/src/source.ts +132 -0
  103. package/src/two_parameter.ts +480 -0
  104. package/src/types.ts +163 -0
  105. package/src/vineyard.ts +463 -0
@@ -0,0 +1,697 @@
1
+ # Third-Party Licenses
2
+
3
+ `@topolab/tda` is MIT (see LICENSE). Its WebAssembly modules, `dist/tda.wasm`
4
+ and `dist/ladder/tda_ladder_bg.wasm`, are compiled from the package's Rust
5
+ crates. This file lists the third-party code those modules contain
6
+ and reproduces the notices its licences require.
7
+
8
+ ## GUDHI (MIT)
9
+
10
+ - **Source:** https://gudhi.inria.fr/
11
+ - `rust/tda-core/src/geometry/sampling.rs` is an edited port of GUDHI
12
+ 3.11.0's `include/gudhi/choose_n_farthest_points.h` (Siargey Kachanovich
13
+ and Marc Glisse, "Copyright (C) 2016 Inria"). The file carries GUDHI's
14
+ notice.
15
+ - The value rule of the Čech and Delaunay–Čech builders
16
+ (`rust/tda-core/src/geometry/cech.rs`) is the rule of GUDHI's
17
+ `assign_MEB_filtration` (`include/gudhi/MEB_filtration.h`), and
18
+ `facets_present` in `rust/tda-core/src/geometry/witness.rs` follows the
19
+ design of GUDHI's `all_faces_in`.
20
+
21
+ GUDHI 3.11.0 `LICENSE`:
22
+
23
+ ```text
24
+ MIT License
25
+
26
+ Copyright (c) 2014-2019 The GUDHI developers.
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ of this software and associated documentation files (the "Software"), to deal
30
+ in the Software without restriction, including without limitation the rights
31
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ copies of the Software, and to permit persons to whom the Software is
33
+ furnished to do so, subject to the following conditions:
34
+
35
+ The above copyright notice and this permission notice shall be included in all
36
+ copies or substantial portions of the Software.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44
+ SOFTWARE.
45
+ ```
46
+
47
+ ## Geogram (BSD-3-Clause)
48
+
49
+ - **Source:** https://github.com/BrunoLevy/geogram.psm.Delaunay
50
+ - The regular triangulations and exact predicates in
51
+ `rust/tda-core/src/triangulation` follow Geogram's conventions: the lifting
52
+ of `RegularWeightedDelaunay3d` / `RegularWeightedDelaunay2d`, the insertion
53
+ semantics of `Delaunay3d` and `Delaunay2d` in weighted mode, and the
54
+ Simulation of Simplicity rule of `side4h_3d_exact_SOS` /
55
+ `side4_3d_exact_SOS`. The exact arithmetic is Shewchuk's (Discrete Comput.
56
+ Geom. 18, 1997).
57
+
58
+ The `LICENSE` file of the PSM repository:
59
+
60
+ ```text
61
+ BSD 3-Clause License
62
+
63
+ Copyright (c) 2022, Bruno Levy
64
+ All rights reserved.
65
+
66
+ Redistribution and use in source and binary forms, with or without
67
+ modification, are permitted provided that the following conditions are met:
68
+
69
+ 1. Redistributions of source code must retain the above copyright notice, this
70
+ list of conditions and the following disclaimer.
71
+
72
+ 2. Redistributions in binary form must reproduce the above copyright notice,
73
+ this list of conditions and the following disclaimer in the documentation
74
+ and/or other materials provided with the distribution.
75
+
76
+ 3. Neither the name of the copyright holder nor the names of its
77
+ contributors may be used to endorse or promote products derived from
78
+ this software without specific prior written permission.
79
+
80
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
81
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
82
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
83
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
84
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
85
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
86
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
87
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
88
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
89
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90
+ ```
91
+
92
+ The notice at the head of `Delaunay_psm.cpp` and `Delaunay_psm.h`:
93
+
94
+ ```text
95
+ Copyright (c) 2000-2022 Inria
96
+ All rights reserved.
97
+
98
+ Redistribution and use in source and binary forms, with or without
99
+ modification, are permitted provided that the following conditions are met:
100
+
101
+ * Redistributions of source code must retain the above copyright notice,
102
+ this list of conditions and the following disclaimer.
103
+ * Redistributions in binary form must reproduce the above copyright notice,
104
+ this list of conditions and the following disclaimer in the documentation
105
+ and/or other materials provided with the distribution.
106
+ * Neither the name of the ALICE Project-Team nor the names of its
107
+ contributors may be used to endorse or promote products derived from this
108
+ software without specific prior written permission.
109
+
110
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
111
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
112
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
113
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
114
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
115
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
116
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
117
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
118
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
119
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
120
+ POSSIBILITY OF SUCH DAMAGE.
121
+
122
+ Contact: Bruno Levy
123
+
124
+ https://www.inria.fr/fr/bruno-levy
125
+
126
+ Inria,
127
+ Domaine de Voluceau,
128
+ 78150 Le Chesnay - Rocquencourt
129
+ FRANCE
130
+ ```
131
+
132
+
133
+ ## LEMON (BSL-1.0)
134
+
135
+ Source: LEMON 1.3.1, `lemon/network_simplex.h`, class `NetworkSimplex`
136
+ (<https://lemon.cs.elte.hu/>). The network simplex pivot in
137
+ `rust/ot-diagram/src/emd.rs`, behind `diagramWasserstein`, is a Rust
138
+ translation of parts of that class, and the crate `ot-diagram` is licensed
139
+ `MIT AND BSL-1.0`. The parts of `emd.rs` that follow it:
140
+
141
+ | `emd.rs` | LEMON 1.3.1 `NetworkSimplex` |
142
+ |---|---|
143
+ | `find_entering_arc` (the scan: block size `max(√arcs, 10)`, restart at `next_arc`) | `BlockSearchPivotRule::findEnteringArc` |
144
+ | the walk to `join` in `certify` | `findJoinNode` |
145
+ | `find_leaving_arc` | `findLeavingArc`, specialised to uncapacitated arcs |
146
+ | `change_flow` (the flow update) | `changeFlow` |
147
+ | `update_tree_structure` | `updateTreeStructure` |
148
+ | `update_potential` (its double-double branch is new) | `updatePotential` |
149
+ | tree arrays `parent`, `pred`, `pred_dir`, `thread`, `rev_thread`, `succ_num`, `last_succ`, `dirty_revs`; `STATE_TREE`, `STATE_LOWER`, `DIR_UP`, `DIR_DOWN` | `_parent`, `_pred`, `_pred_dir`, `_thread`, `_rev_thread`, `_succ_num`, `_last_succ`, `_dirty_revs`; the same constants |
150
+
151
+ The notice of `lemon/network_simplex.h`:
152
+
153
+ ```text
154
+ This file is a part of LEMON, a generic C++ optimization library.
155
+
156
+ Copyright (C) 2003-2013
157
+ Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
158
+ (Egervary Research Group on Combinatorial Optimization, EGRES).
159
+
160
+ Permission to use, modify and distribute this software is granted
161
+ provided that this copyright notice appears in all copies. For
162
+ precise terms see the accompanying LICENSE file.
163
+
164
+ This software is provided "AS IS" with no warranty of any kind,
165
+ express or implied, and with no claim as to its suitability for any
166
+ purpose.
167
+ ```
168
+
169
+ The accompanying LICENSE file of LEMON 1.3.1:
170
+
171
+ ```text
172
+ LEMON code without an explicit copyright notice is covered by the following
173
+ copyright/license.
174
+
175
+ Copyright (C) 2003-2012 Egervary Jeno Kombinatorikus Optimalizalasi
176
+ Kutatocsoport (Egervary Combinatorial Optimization Research Group,
177
+ EGRES).
178
+
179
+ ===========================================================================
180
+ Boost Software License, Version 1.0
181
+ ===========================================================================
182
+
183
+ Permission is hereby granted, free of charge, to any person or organization
184
+ obtaining a copy of the software and accompanying documentation covered by
185
+ this license (the "Software") to use, reproduce, display, distribute,
186
+ execute, and transmit the Software, and to prepare derivative works of the
187
+ Software, and to permit third-parties to whom the Software is furnished to
188
+ do so, all subject to the following:
189
+
190
+ The copyright notices in the Software and this entire statement, including
191
+ the above license grant, this restriction and the following disclaimer,
192
+ must be included in all copies of the Software, in whole or in part, and
193
+ all derivative works of the Software, unless such copies or derivative
194
+ works are solely in the form of machine-executable object code generated by
195
+ a source language processor.
196
+
197
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
198
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
199
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
200
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
201
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
202
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
203
+ DEALINGS IN THE SOFTWARE.
204
+ ```
205
+
206
+ ## Rust crates compiled into the WebAssembly modules
207
+
208
+ The crates compiled into `dist/tda.wasm` and `dist/ladder/tda_ladder_bg.wasm`.
209
+ Where a crate is offered under "MIT OR Apache-2.0", this package takes the MIT
210
+ branch. The licence texts are in "Notice texts" at the end of this file.
211
+
212
+ | Crate | Version | Licence expression (crates.io) | Copyright notice in its sources | In `tda.wasm` | In `tda_ladder_bg.wasm` |
213
+ |---|---|---|---|:-:|:-:|
214
+ | wasm-bindgen | 0.2.129 | MIT OR Apache-2.0 | Copyright (c) 2014 Alex Crichton | yes | yes |
215
+ | wasm-bindgen-shared | 0.2.129 | MIT OR Apache-2.0 | Copyright (c) 2014 Alex Crichton | yes | yes |
216
+ | js-sys | 0.3.106 | MIT OR Apache-2.0 | Copyright (c) 2014 Alex Crichton | yes | no |
217
+ | futures-core, futures-task, futures-util | 0.3.34 | MIT OR Apache-2.0 | Copyright (c) 2016 Alex Crichton; Copyright (c) 2017 The Tokio Authors | yes | no |
218
+ | pin-project-lite | 0.2.17 | Apache-2.0 OR MIT | none in its LICENSE-MIT (author: taiki-e, the crate's repository owner) | yes | no |
219
+ | slab | 0.4.12 | MIT | Copyright (c) 2019 Carl Lerche | yes | no |
220
+ | once_cell | 1.21.4 | MIT OR Apache-2.0 | none in its LICENSE-MIT (author: Aleksey Kladov) | yes | yes |
221
+ | cfg-if | 1.0.5 | MIT OR Apache-2.0 | Copyright (c) 2014 Alex Crichton | yes | yes |
222
+ | unicode-ident | 1.0.26 | (MIT OR Apache-2.0) AND Unicode-3.0 | none in its LICENSE-MIT (author: David Tolnay); Unicode-3.0 part: Copyright (c) 1991-2023 Unicode, Inc. | yes | yes |
223
+ | libm | 0.2.16 | **MIT** | Copyright (c) 2018 Jorge Aparicio; portions of musl libc (Copyright (c) 2005-2020 Rich Felker, et al.), the CORE-MATH project, and the Sun, FreeBSD and Arm notices listed in its file | yes | no |
224
+ | `topolab-memory-phase` (this package, `rust/memory-phase`) | 0.1.0 | MIT | topolab | yes | yes |
225
+ | `topolab-musl-math` (this package, `rust/musl-math`; derived from musl, see "Ported code" below) | 0.1.0 | MIT; MIT-licensed musl and Arm optimized-routines parts | see "Ported code" | yes | no |
226
+ | `ot-diagram` (this package; derived from LEMON, see "LEMON") | 0.1.0 | MIT; BSL-1.0 part | see "LEMON" | yes | no |
227
+ | `topolab-tda` (`rust/tda-core`), `tda-wasm` / `tda-ladder`, `tda-ladder-wasm` (this package) | | MIT | topolab | yes | yes (ladder crates) |
228
+
229
+ **The Rust standard library** (`core`, `alloc`, `std`; toolchain 1.98.1,
230
+ target `wasm32-unknown-unknown`) is MIT OR Apache-2.0, "Copyright The Rust
231
+ Project Developers", and is linked into both modules by the compiler. Its
232
+ sources carry notices of their own, which the toolchain publishes in
233
+ `share/doc/rust/COPYRIGHT-library.html`:
234
+ - `core`'s Unicode tables (`library/core/src/unicode`) are under Unicode-3.0,
235
+ Copyright 1991-2024 Unicode, Inc. (text below);
236
+ - **dlmalloc** 0.2.13 (the allocator of this target; MIT OR Apache-2.0,
237
+ "Copyright (c) 2014 Alex Crichton", derived from Doug Lea's public-domain
238
+ `malloc.c`), **hashbrown** (the hash table of `std::collections`; MIT OR
239
+ Apache-2.0, "Copyright (c) 2016 Amanieu d'Antras"), both used under the
240
+ MIT terms, which read as the MIT License under "Notice texts" below with
241
+ these copyright lines, and **compiler_builtins**, with the `libm` port it
242
+ contains (MIT OR Apache-2.0; derived from musl and from the FreeBSD,
243
+ Sun and Arm routines named in the libm notice below, and from LLVM
244
+ compiler-rt, Apache-2.0 WITH LLVM-exception), are compiled into the
245
+ standard library for this target. The exact list of crates inside the
246
+ standard library depends on the toolchain release; the file named above
247
+ is the authority for 1.98.1.
248
+
249
+ The generated JavaScript glue (`dist/pkg/tda_wasm.js`,
250
+ `dist/ladder/tda_ladder.js`) is wasm-bindgen's output (MIT OR Apache-2.0).
251
+
252
+ ## Ported code in this package's crates
253
+
254
+ - **`rust/ot-diagram`:** the Wasserstein and bottleneck distances of
255
+ `diagramWasserstein` and `diagramBottleneck`, the same code as
256
+ `@topolab/ot`'s diagram distances (MIT, topolab). Its network simplex pivot
257
+ is derived from LEMON (see "LEMON" above).
258
+ - **`rust/tda-core/src/coupled_alpha/binary128.rs`:** a software IEEE
259
+ binary128.
260
+ - `F128::hypot` transcribes musl's `src/math/hypotl.c` (the 113-bit
261
+ significand branch) operation for operation. musl is MIT:
262
+
263
+ ```
264
+ Copyright © 2005-2020 Rich Felker, et al.
265
+
266
+ Permission is hereby granted, free of charge, to any person obtaining
267
+ a copy of this software and associated documentation files (the
268
+ "Software"), to deal in the Software without restriction, including
269
+ without limitation the rights to use, copy, modify, merge, publish,
270
+ distribute, sublicense, and/or sell copies of the Software, and to
271
+ permit persons to whom the Software is furnished to do so, subject to
272
+ the following conditions:
273
+
274
+ The above copyright notice and this permission notice shall be
275
+ included in all copies or substantial portions of the Software.
276
+
277
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
278
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
279
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
280
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
281
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
282
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
283
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
284
+ ```
285
+ - Addition and multiplication follow the structure of LLVM compiler-rt's
286
+ `fp_add_impl.inc` and `fp_mul_impl.inc` (Apache-2.0 WITH LLVM-exception);
287
+ the Apache License 2.0 with the LLVM exception is reproduced in "Notice
288
+ texts" below.
289
+ - **`rust/musl-math`:** `exp`, `log`, `pow` and `hypot`, ported operation
290
+ for operation from musl's `src/math`, so that every target gives the same
291
+ bits. `exp.c`, `pow.c`, `log.c` and the tables
292
+ of `exp_data.c`, `pow_data.c` and `log_data.c` (`src/data.rs`, generated
293
+ from them) are Szabolcs Nagy's routines from Arm Limited's
294
+ optimized-routines, in musl under "Copyright (c) 2018, Arm Limited.
295
+ SPDX-License-Identifier: MIT" (musl's COPYRIGHT: "Copyright © 2017-2018 Arm
296
+ Limited ... licensed under extremely permissive terms"); `hypot.c` is
297
+ musl's own. Both under musl's MIT licence:
298
+
299
+ ```
300
+ Copyright © 2005-2020 Rich Felker, et al.
301
+ Copyright (c) 2018, Arm Limited (exp.c, pow.c, log.c and their data)
302
+
303
+ Permission is hereby granted, free of charge, to any person obtaining
304
+ a copy of this software and associated documentation files (the
305
+ "Software"), to deal in the Software without restriction, including
306
+ without limitation the rights to use, copy, modify, merge, publish,
307
+ distribute, sublicense, and/or sell copies of the Software, and to
308
+ permit persons to whom the Software is furnished to do so, subject to
309
+ the following conditions:
310
+
311
+ The above copyright notice and this permission notice shall be
312
+ included in all copies or substantial portions of the Software.
313
+
314
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
315
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
316
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
317
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
318
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
319
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
320
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
321
+ ```
322
+
323
+ - **`libm` 0.2.16** (crates.io; licence **MIT**): `hypot`, `sin` and `cos`
324
+ of the ellipsoid and wing builders, and `sin` and `cos` of a two-parameter
325
+ line given by its angle. Its `LICENSE.txt`, with the component
326
+ notices it carries (musl, CORE-MATH, Sun Microsystems, FreeBSD, Arm), is in
327
+ "Notice texts" below.
328
+
329
+ ## Notice texts
330
+
331
+ Texts reproduced from the crates' own licence files (registry sources of the
332
+ versions in the lockfiles), for the notices required above.
333
+
334
+ ### MIT License (wasm-bindgen, wasm-bindgen-shared, js-sys, futures-*, pin-project-lite, slab, once_cell, cfg-if, unicode-ident)
335
+
336
+ The copyright lines of each crate are in the table above; the permission
337
+ notice is the same for all of them:
338
+
339
+ Permission is hereby granted, free of charge, to any
340
+ person obtaining a copy of this software and associated
341
+ documentation files (the "Software"), to deal in the
342
+ Software without restriction, including without
343
+ limitation the rights to use, copy, modify, merge,
344
+ publish, distribute, sublicense, and/or sell copies of
345
+ the Software, and to permit persons to whom the Software
346
+ is furnished to do so, subject to the following
347
+ conditions:
348
+
349
+ The above copyright notice and this permission notice
350
+ shall be included in all copies or substantial portions
351
+ of the Software.
352
+
353
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
354
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
355
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
356
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
357
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
358
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
359
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
360
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
361
+ DEALINGS IN THE SOFTWARE.
362
+
363
+ ### Unicode License v3 (Unicode-3.0: unicode-ident's data tables; `core`'s Unicode tables)
364
+
365
+ UNICODE LICENSE V3
366
+
367
+ COPYRIGHT AND PERMISSION NOTICE
368
+
369
+ Copyright © 1991-2023 Unicode, Inc.
370
+
371
+ NOTICE TO USER: Carefully read the following legal agreement. BY
372
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
373
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
374
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
375
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
376
+
377
+ Permission is hereby granted, free of charge, to any person obtaining a
378
+ copy of data files and any associated documentation (the "Data Files") or
379
+ software and any associated documentation (the "Software") to deal in the
380
+ Data Files or Software without restriction, including without limitation
381
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
382
+ copies of the Data Files or Software, and to permit persons to whom the
383
+ Data Files or Software are furnished to do so, provided that either (a)
384
+ this copyright and permission notice appear with all copies of the Data
385
+ Files or Software, or (b) this copyright and permission notice appear in
386
+ associated Documentation.
387
+
388
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
389
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
390
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
391
+ THIRD PARTY RIGHTS.
392
+
393
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
394
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
395
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
396
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
397
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
398
+ FILES OR SOFTWARE.
399
+
400
+ Except as contained in this notice, the name of a copyright holder shall
401
+ not be used in advertising or otherwise to promote the sale, use or other
402
+ dealings in these Data Files or Software without prior written
403
+ authorization of the copyright holder.
404
+
405
+ ### libm 0.2.16 — `LICENSE.txt` (MIT; contributors' dual-license note and component notices)
406
+
407
+ rust-lang/libm as a whole is available for use under the MIT license:
408
+
409
+ ------------------------------------------------------------------------------
410
+ Permission is hereby granted, free of charge, to any person obtaining a copy
411
+ of this software and associated documentation files (the "Software"), to deal
412
+ in the Software without restriction, including without limitation the rights
413
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
414
+ copies of the Software, and to permit persons to whom the Software is
415
+ furnished to do so, subject to the following conditions:
416
+
417
+ The above copyright notice and this permission notice shall be included in all
418
+ copies or substantial portions of the Software.
419
+
420
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
421
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
422
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
423
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
424
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
425
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
426
+ SOFTWARE.
427
+ ------------------------------------------------------------------------------
428
+
429
+ As a contributor, you agree that your code can be used under either the MIT
430
+ license or the Apache-2.0 license:
431
+
432
+ ------------------------------------------------------------------------------
433
+ [the Apache License 2.0, reproduced in full in "Apache License 2.0" below]
434
+ ------------------------------------------------------------------------------
435
+
436
+ This Rust library contains the following copyrights:
437
+
438
+ Copyright (c) 2018 Jorge Aparicio
439
+
440
+ Portions of this software are derived from third-party works licensed under
441
+ terms compatible with the above MIT license:
442
+
443
+ * musl libc https://www.musl-libc.org/. This library contains the following
444
+ copyright:
445
+
446
+ Copyright © 2005-2020 Rich Felker, et al.
447
+
448
+ * The CORE-MATH project https://core-math.gitlabpages.inria.fr/. CORE-MATH
449
+ routines are available under the MIT license on a per-file basis.
450
+
451
+ The musl libc COPYRIGHT file also includes the following notice relevant to
452
+ math portions of the library:
453
+
454
+ ------------------------------------------------------------------------------
455
+ Much of the math library code (src/math/* and src/complex/*) is
456
+ Copyright © 1993,2004 Sun Microsystems or
457
+ Copyright © 2003-2011 David Schultz or
458
+ Copyright © 2003-2009 Steven G. Kargl or
459
+ Copyright © 2003-2009 Bruce D. Evans or
460
+ Copyright © 2008 Stephen L. Moshier or
461
+ Copyright © 2017-2018 Arm Limited
462
+ and labelled as such in comments in the individual source files. All
463
+ have been licensed under extremely permissive terms.
464
+ ------------------------------------------------------------------------------
465
+
466
+ Copyright notices are retained in src/* files where relevant.
467
+
468
+ ### Apache License 2.0
469
+
470
+ For every crate above offered as "MIT OR Apache-2.0" (not taken here), for the
471
+ contributor note in libm's licence, and for the LLVM-derived structure of
472
+ `rust/tda-core/src/coupled_alpha/binary128.rs`:
473
+
474
+ Apache License
475
+ Version 2.0, January 2004
476
+ http://www.apache.org/licenses/
477
+
478
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
479
+
480
+ 1. Definitions.
481
+
482
+ "License" shall mean the terms and conditions for use, reproduction,
483
+ and distribution as defined by Sections 1 through 9 of this document.
484
+
485
+ "Licensor" shall mean the copyright owner or entity authorized by
486
+ the copyright owner that is granting the License.
487
+
488
+ "Legal Entity" shall mean the union of the acting entity and all
489
+ other entities that control, are controlled by, or are under common
490
+ control with that entity. For the purposes of this definition,
491
+ "control" means (i) the power, direct or indirect, to cause the
492
+ direction or management of such entity, whether by contract or
493
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
494
+ outstanding shares, or (iii) beneficial ownership of such entity.
495
+
496
+ "You" (or "Your") shall mean an individual or Legal Entity
497
+ exercising permissions granted by this License.
498
+
499
+ "Source" form shall mean the preferred form for making modifications,
500
+ including but not limited to software source code, documentation
501
+ source, and configuration files.
502
+
503
+ "Object" form shall mean any form resulting from mechanical
504
+ transformation or translation of a Source form, including but
505
+ not limited to compiled object code, generated documentation,
506
+ and conversions to other media types.
507
+
508
+ "Work" shall mean the work of authorship, whether in Source or
509
+ Object form, made available under the License, as indicated by a
510
+ copyright notice that is included in or attached to the work
511
+ (an example is provided in the Appendix below).
512
+
513
+ "Derivative Works" shall mean any work, whether in Source or Object
514
+ form, that is based on (or derived from) the Work and for which the
515
+ editorial revisions, annotations, elaborations, or other modifications
516
+ represent, as a whole, an original work of authorship. For the purposes
517
+ of this License, Derivative Works shall not include works that remain
518
+ separable from, or merely link (or bind by name) to the interfaces of,
519
+ the Work and Derivative Works thereof.
520
+
521
+ "Contribution" shall mean any work of authorship, including
522
+ the original version of the Work and any modifications or additions
523
+ to that Work or Derivative Works thereof, that is intentionally
524
+ submitted to Licensor for inclusion in the Work by the copyright owner
525
+ or by an individual or Legal Entity authorized to submit on behalf of
526
+ the copyright owner. For the purposes of this definition, "submitted"
527
+ means any form of electronic, verbal, or written communication sent
528
+ to the Licensor or its representatives, including but not limited to
529
+ communication on electronic mailing lists, source code control systems,
530
+ and issue tracking systems that are managed by, or on behalf of, the
531
+ Licensor for the purpose of discussing and improving the Work, but
532
+ excluding communication that is conspicuously marked or otherwise
533
+ designated in writing by the copyright owner as "Not a Contribution."
534
+
535
+ "Contributor" shall mean Licensor and any individual or Legal Entity
536
+ on behalf of whom a Contribution has been received by Licensor and
537
+ subsequently incorporated within the Work.
538
+
539
+ 2. Grant of Copyright License. Subject to the terms and conditions of
540
+ this License, each Contributor hereby grants to You a perpetual,
541
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
542
+ copyright license to reproduce, prepare Derivative Works of,
543
+ publicly display, publicly perform, sublicense, and distribute the
544
+ Work and such Derivative Works in Source or Object form.
545
+
546
+ 3. Grant of Patent License. Subject to the terms and conditions of
547
+ this License, each Contributor hereby grants to You a perpetual,
548
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
549
+ (except as stated in this section) patent license to make, have made,
550
+ use, offer to sell, sell, import, and otherwise transfer the Work,
551
+ where such license applies only to those patent claims licensable
552
+ by such Contributor that are necessarily infringed by their
553
+ Contribution(s) alone or by combination of their Contribution(s)
554
+ with the Work to which such Contribution(s) was submitted. If You
555
+ institute patent litigation against any entity (including a
556
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
557
+ or a Contribution incorporated within the Work constitutes direct
558
+ or contributory patent infringement, then any patent licenses
559
+ granted to You under this License for that Work shall terminate
560
+ as of the date such litigation is filed.
561
+
562
+ 4. Redistribution. You may reproduce and distribute copies of the
563
+ Work or Derivative Works thereof in any medium, with or without
564
+ modifications, and in Source or Object form, provided that You
565
+ meet the following conditions:
566
+
567
+ (a) You must give any other recipients of the Work or
568
+ Derivative Works a copy of this License; and
569
+
570
+ (b) You must cause any modified files to carry prominent notices
571
+ stating that You changed the files; and
572
+
573
+ (c) You must retain, in the Source form of any Derivative Works
574
+ that You distribute, all copyright, patent, trademark, and
575
+ attribution notices from the Source form of the Work,
576
+ excluding those notices that do not pertain to any part of
577
+ the Derivative Works; and
578
+
579
+ (d) If the Work includes a "NOTICE" text file as part of its
580
+ distribution, then any Derivative Works that You distribute must
581
+ include a readable copy of the attribution notices contained
582
+ within such NOTICE file, excluding those notices that do not
583
+ pertain to any part of the Derivative Works, in at least one
584
+ of the following places: within a NOTICE text file distributed
585
+ as part of the Derivative Works; within the Source form or
586
+ documentation, if provided along with the Derivative Works; or,
587
+ within a display generated by the Derivative Works, if and
588
+ wherever such third-party notices normally appear. The contents
589
+ of the NOTICE file are for informational purposes only and
590
+ do not modify the License. You may add Your own attribution
591
+ notices within Derivative Works that You distribute, alongside
592
+ or as an addendum to the NOTICE text from the Work, provided
593
+ that such additional attribution notices cannot be construed
594
+ as modifying the License.
595
+
596
+ You may add Your own copyright statement to Your modifications and
597
+ may provide additional or different license terms and conditions
598
+ for use, reproduction, or distribution of Your modifications, or
599
+ for any such Derivative Works as a whole, provided Your use,
600
+ reproduction, and distribution of the Work otherwise complies with
601
+ the conditions stated in this License.
602
+
603
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
604
+ any Contribution intentionally submitted for inclusion in the Work
605
+ by You to the Licensor shall be under the terms and conditions of
606
+ this License, without any additional terms or conditions.
607
+ Notwithstanding the above, nothing herein shall supersede or modify
608
+ the terms of any separate license agreement you may have executed
609
+ with Licensor regarding such Contributions.
610
+
611
+ 6. Trademarks. This License does not grant permission to use the trade
612
+ names, trademarks, service marks, or product names of the Licensor,
613
+ except as required for reasonable and customary use in describing the
614
+ origin of the Work and reproducing the content of the NOTICE file.
615
+
616
+ 7. Disclaimer of Warranty. Unless required by applicable law or
617
+ agreed to in writing, Licensor provides the Work (and each
618
+ Contributor provides its Contributions) on an "AS IS" BASIS,
619
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
620
+ implied, including, without limitation, any warranties or conditions
621
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
622
+ PARTICULAR PURPOSE. You are solely responsible for determining the
623
+ appropriateness of using or redistributing the Work and assume any
624
+ risks associated with Your exercise of permissions under this License.
625
+
626
+ 8. Limitation of Liability. In no event and under no legal theory,
627
+ whether in tort (including negligence), contract, or otherwise,
628
+ unless required by applicable law (such as deliberate and grossly
629
+ negligent acts) or agreed to in writing, shall any Contributor be
630
+ liable to You for damages, including any direct, indirect, special,
631
+ incidental, or consequential damages of any character arising as a
632
+ result of this License or out of the use or inability to use the
633
+ Work (including but not limited to damages for loss of goodwill,
634
+ work stoppage, computer failure or malfunction, or any and all
635
+ other commercial damages or losses), even if such Contributor
636
+ has been advised of the possibility of such damages.
637
+
638
+ 9. Accepting Warranty or Additional Liability. While redistributing
639
+ the Work or Derivative Works thereof, You may choose to offer,
640
+ and charge a fee for, acceptance of support, warranty, indemnity,
641
+ or other liability obligations and/or rights consistent with this
642
+ License. However, in accepting such obligations, You may act only
643
+ on Your own behalf and on Your sole responsibility, not on behalf
644
+ of any other Contributor, and only if You agree to indemnify,
645
+ defend, and hold each Contributor harmless for any liability
646
+ incurred by, or claims asserted against, such Contributor by reason
647
+ of your accepting any such warranty or additional liability.
648
+
649
+ END OF TERMS AND CONDITIONS
650
+
651
+ APPENDIX: How to apply the Apache License to your work.
652
+
653
+ To apply the Apache License to your work, attach the following
654
+ boilerplate notice, with the fields enclosed by brackets "[]"
655
+ replaced with your own identifying information. (Don't include
656
+ the brackets!) The text should be enclosed in the appropriate
657
+ comment syntax for the file format. We also recommend that a
658
+ file or class name and description of purpose be included on the
659
+ same "printed page" as the copyright notice for easier
660
+ identification within third-party archives.
661
+
662
+ Copyright [yyyy] [name of copyright owner]
663
+
664
+ Licensed under the Apache License, Version 2.0 (the "License");
665
+ you may not use this file except in compliance with the License.
666
+ You may obtain a copy of the License at
667
+
668
+ http://www.apache.org/licenses/LICENSE-2.0
669
+
670
+ Unless required by applicable law or agreed to in writing, software
671
+ distributed under the License is distributed on an "AS IS" BASIS,
672
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
673
+ See the License for the specific language governing permissions and
674
+ limitations under the License.
675
+
676
+ ### LLVM Exception to the Apache License 2.0
677
+
678
+ LLVM compiler-rt (`fp_add_impl.inc`, `fp_mul_impl.inc`; "Part of the LLVM
679
+ Project, under the Apache License v2.0 with LLVM Exceptions") and the
680
+ compiler-rt routines inside Rust's `compiler_builtins` are under the Apache
681
+ License 2.0 with this exception:
682
+
683
+ ---- LLVM Exceptions to the Apache 2.0 License ----
684
+
685
+ As an exception, if, as a result of your compiling your source code, portions
686
+ of this Software are embedded into an Object form of such source code, you
687
+ may redistribute such embedded portions in such Object form without complying
688
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
689
+
690
+ In addition, if you combine or link compiled forms of this Software with
691
+ software that is licensed under the GPLv2 ("Combined Software") and if a
692
+ court of competent jurisdiction determines that the patent provision (Section
693
+ 3), the indemnity provision (Section 9) or other Section of the License
694
+ conflicts with the conditions of the GPLv2, you may retroactively and
695
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
696
+ the License, but only in their entirety and only with respect to the Combined
697
+ Software.