@topolab/tda 0.0.0-stage → 0.3.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.
- package/CHANGELOG.md +82 -0
- package/CITATION.cff +72 -0
- package/LICENSE +21 -0
- package/README.md +100 -2
- package/SECURITY.md +34 -0
- package/THIRD_PARTY_LICENSES.md +696 -0
- package/dist/build_info.json +12 -0
- package/dist/check.d.ts +118 -0
- package/dist/check.d.ts.map +1 -0
- package/dist/check.js +298 -0
- package/dist/check.js.map +1 -0
- package/dist/complex.d.ts +543 -0
- package/dist/complex.d.ts.map +1 -0
- package/dist/complex.js +712 -0
- package/dist/complex.js.map +1 -0
- package/dist/diagram.d.ts +116 -0
- package/dist/diagram.d.ts.map +1 -0
- package/dist/diagram.js +238 -0
- package/dist/diagram.js.map +1 -0
- package/dist/diagram_of.d.ts +17 -0
- package/dist/diagram_of.d.ts.map +1 -0
- package/dist/diagram_of.js +40 -0
- package/dist/diagram_of.js.map +1 -0
- package/dist/experimental.d.ts +14 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +13 -0
- package/dist/experimental.js.map +1 -0
- package/dist/flat.d.ts +64 -0
- package/dist/flat.d.ts.map +1 -0
- package/dist/flat.js +158 -0
- package/dist/flat.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/ladder/tda_ladder.d.ts +223 -0
- package/dist/ladder/tda_ladder.js +1360 -0
- package/dist/ladder/tda_ladder_bg.wasm +0 -0
- package/dist/ladder/tda_ladder_bg.wasm.d.ts +43 -0
- package/dist/ladder.d.ts +306 -0
- package/dist/ladder.d.ts.map +1 -0
- package/dist/ladder.js +607 -0
- package/dist/ladder.js.map +1 -0
- package/dist/load.d.ts +53 -0
- package/dist/load.d.ts.map +1 -0
- package/dist/load.js +173 -0
- package/dist/load.js.map +1 -0
- package/dist/memory.d.ts +58 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +2 -0
- package/dist/memory.js.map +1 -0
- package/dist/persistence.d.ts +349 -0
- package/dist/persistence.d.ts.map +1 -0
- package/dist/persistence.js +478 -0
- package/dist/persistence.js.map +1 -0
- package/dist/pkg/tda_wasm.d.ts +13 -0
- package/dist/pkg/tda_wasm.js +1900 -0
- package/dist/prepared.d.ts +62 -0
- package/dist/prepared.d.ts.map +1 -0
- package/dist/prepared.js +81 -0
- package/dist/prepared.js.map +1 -0
- package/dist/source.d.ts +43 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +99 -0
- package/dist/source.js.map +1 -0
- package/dist/tda.wasm +0 -0
- package/dist/types.d.ts +146 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/vineyard.d.ts +278 -0
- package/dist/vineyard.d.ts.map +1 -0
- package/dist/vineyard.js +236 -0
- package/dist/vineyard.js.map +1 -0
- package/package.json +77 -4
- package/src/check.ts +338 -0
- package/src/complex.ts +1179 -0
- package/src/diagram.ts +299 -0
- package/src/diagram_of.ts +40 -0
- package/src/experimental.ts +13 -0
- package/src/flat.ts +204 -0
- package/src/index.ts +155 -0
- package/src/ladder.ts +903 -0
- package/src/load.ts +201 -0
- package/src/memory.ts +58 -0
- package/src/persistence.ts +752 -0
- package/src/prepared.ts +111 -0
- package/src/source.ts +132 -0
- package/src/types.ts +163 -0
- package/src/vineyard.ts +463 -0
|
@@ -0,0 +1,696 @@
|
|
|
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
|
+
| `memory-phase` (this package, `rust/memory-phase`) | 0.1.0 | MIT | topolab | yes | yes |
|
|
225
|
+
| `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
|
+
| `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. Its `LICENSE.txt`, with the component
|
|
325
|
+
notices it carries (musl, CORE-MATH, Sun Microsystems, FreeBSD, Arm), is in
|
|
326
|
+
"Notice texts" below.
|
|
327
|
+
|
|
328
|
+
## Notice texts
|
|
329
|
+
|
|
330
|
+
Texts reproduced from the crates' own licence files (registry sources of the
|
|
331
|
+
versions in the lockfiles), for the notices required above.
|
|
332
|
+
|
|
333
|
+
### MIT License (wasm-bindgen, wasm-bindgen-shared, js-sys, futures-*, pin-project-lite, slab, once_cell, cfg-if, unicode-ident)
|
|
334
|
+
|
|
335
|
+
The copyright lines of each crate are in the table above; the permission
|
|
336
|
+
notice is the same for all of them:
|
|
337
|
+
|
|
338
|
+
Permission is hereby granted, free of charge, to any
|
|
339
|
+
person obtaining a copy of this software and associated
|
|
340
|
+
documentation files (the "Software"), to deal in the
|
|
341
|
+
Software without restriction, including without
|
|
342
|
+
limitation the rights to use, copy, modify, merge,
|
|
343
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
344
|
+
the Software, and to permit persons to whom the Software
|
|
345
|
+
is furnished to do so, subject to the following
|
|
346
|
+
conditions:
|
|
347
|
+
|
|
348
|
+
The above copyright notice and this permission notice
|
|
349
|
+
shall be included in all copies or substantial portions
|
|
350
|
+
of the Software.
|
|
351
|
+
|
|
352
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
353
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
354
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
355
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
356
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
357
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
358
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
359
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
360
|
+
DEALINGS IN THE SOFTWARE.
|
|
361
|
+
|
|
362
|
+
### Unicode License v3 (Unicode-3.0: unicode-ident's data tables; `core`'s Unicode tables)
|
|
363
|
+
|
|
364
|
+
UNICODE LICENSE V3
|
|
365
|
+
|
|
366
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
367
|
+
|
|
368
|
+
Copyright © 1991-2023 Unicode, Inc.
|
|
369
|
+
|
|
370
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
371
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
372
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
373
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
374
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
375
|
+
|
|
376
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
377
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
378
|
+
software and any associated documentation (the "Software") to deal in the
|
|
379
|
+
Data Files or Software without restriction, including without limitation
|
|
380
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
381
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
382
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
383
|
+
this copyright and permission notice appear with all copies of the Data
|
|
384
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
385
|
+
associated Documentation.
|
|
386
|
+
|
|
387
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
388
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
389
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
390
|
+
THIRD PARTY RIGHTS.
|
|
391
|
+
|
|
392
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
393
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
394
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
395
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
396
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
397
|
+
FILES OR SOFTWARE.
|
|
398
|
+
|
|
399
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
400
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
401
|
+
dealings in these Data Files or Software without prior written
|
|
402
|
+
authorization of the copyright holder.
|
|
403
|
+
|
|
404
|
+
### libm 0.2.16 — `LICENSE.txt` (MIT; contributors' dual-license note and component notices)
|
|
405
|
+
|
|
406
|
+
rust-lang/libm as a whole is available for use under the MIT license:
|
|
407
|
+
|
|
408
|
+
------------------------------------------------------------------------------
|
|
409
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
410
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
411
|
+
in the Software without restriction, including without limitation the rights
|
|
412
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
413
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
414
|
+
furnished to do so, subject to the following conditions:
|
|
415
|
+
|
|
416
|
+
The above copyright notice and this permission notice shall be included in all
|
|
417
|
+
copies or substantial portions of the Software.
|
|
418
|
+
|
|
419
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
420
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
421
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
422
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
423
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
424
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
425
|
+
SOFTWARE.
|
|
426
|
+
------------------------------------------------------------------------------
|
|
427
|
+
|
|
428
|
+
As a contributor, you agree that your code can be used under either the MIT
|
|
429
|
+
license or the Apache-2.0 license:
|
|
430
|
+
|
|
431
|
+
------------------------------------------------------------------------------
|
|
432
|
+
[the Apache License 2.0, reproduced in full in "Apache License 2.0" below]
|
|
433
|
+
------------------------------------------------------------------------------
|
|
434
|
+
|
|
435
|
+
This Rust library contains the following copyrights:
|
|
436
|
+
|
|
437
|
+
Copyright (c) 2018 Jorge Aparicio
|
|
438
|
+
|
|
439
|
+
Portions of this software are derived from third-party works licensed under
|
|
440
|
+
terms compatible with the above MIT license:
|
|
441
|
+
|
|
442
|
+
* musl libc https://www.musl-libc.org/. This library contains the following
|
|
443
|
+
copyright:
|
|
444
|
+
|
|
445
|
+
Copyright © 2005-2020 Rich Felker, et al.
|
|
446
|
+
|
|
447
|
+
* The CORE-MATH project https://core-math.gitlabpages.inria.fr/. CORE-MATH
|
|
448
|
+
routines are available under the MIT license on a per-file basis.
|
|
449
|
+
|
|
450
|
+
The musl libc COPYRIGHT file also includes the following notice relevant to
|
|
451
|
+
math portions of the library:
|
|
452
|
+
|
|
453
|
+
------------------------------------------------------------------------------
|
|
454
|
+
Much of the math library code (src/math/* and src/complex/*) is
|
|
455
|
+
Copyright © 1993,2004 Sun Microsystems or
|
|
456
|
+
Copyright © 2003-2011 David Schultz or
|
|
457
|
+
Copyright © 2003-2009 Steven G. Kargl or
|
|
458
|
+
Copyright © 2003-2009 Bruce D. Evans or
|
|
459
|
+
Copyright © 2008 Stephen L. Moshier or
|
|
460
|
+
Copyright © 2017-2018 Arm Limited
|
|
461
|
+
and labelled as such in comments in the individual source files. All
|
|
462
|
+
have been licensed under extremely permissive terms.
|
|
463
|
+
------------------------------------------------------------------------------
|
|
464
|
+
|
|
465
|
+
Copyright notices are retained in src/* files where relevant.
|
|
466
|
+
|
|
467
|
+
### Apache License 2.0
|
|
468
|
+
|
|
469
|
+
For every crate above offered as "MIT OR Apache-2.0" (not taken here), for the
|
|
470
|
+
contributor note in libm's licence, and for the LLVM-derived structure of
|
|
471
|
+
`rust/tda-core/src/coupled_alpha/binary128.rs`:
|
|
472
|
+
|
|
473
|
+
Apache License
|
|
474
|
+
Version 2.0, January 2004
|
|
475
|
+
http://www.apache.org/licenses/
|
|
476
|
+
|
|
477
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
478
|
+
|
|
479
|
+
1. Definitions.
|
|
480
|
+
|
|
481
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
482
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
483
|
+
|
|
484
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
485
|
+
the copyright owner that is granting the License.
|
|
486
|
+
|
|
487
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
488
|
+
other entities that control, are controlled by, or are under common
|
|
489
|
+
control with that entity. For the purposes of this definition,
|
|
490
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
491
|
+
direction or management of such entity, whether by contract or
|
|
492
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
493
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
494
|
+
|
|
495
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
496
|
+
exercising permissions granted by this License.
|
|
497
|
+
|
|
498
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
499
|
+
including but not limited to software source code, documentation
|
|
500
|
+
source, and configuration files.
|
|
501
|
+
|
|
502
|
+
"Object" form shall mean any form resulting from mechanical
|
|
503
|
+
transformation or translation of a Source form, including but
|
|
504
|
+
not limited to compiled object code, generated documentation,
|
|
505
|
+
and conversions to other media types.
|
|
506
|
+
|
|
507
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
508
|
+
Object form, made available under the License, as indicated by a
|
|
509
|
+
copyright notice that is included in or attached to the work
|
|
510
|
+
(an example is provided in the Appendix below).
|
|
511
|
+
|
|
512
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
513
|
+
form, that is based on (or derived from) the Work and for which the
|
|
514
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
515
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
516
|
+
of this License, Derivative Works shall not include works that remain
|
|
517
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
518
|
+
the Work and Derivative Works thereof.
|
|
519
|
+
|
|
520
|
+
"Contribution" shall mean any work of authorship, including
|
|
521
|
+
the original version of the Work and any modifications or additions
|
|
522
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
523
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
524
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
525
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
526
|
+
means any form of electronic, verbal, or written communication sent
|
|
527
|
+
to the Licensor or its representatives, including but not limited to
|
|
528
|
+
communication on electronic mailing lists, source code control systems,
|
|
529
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
530
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
531
|
+
excluding communication that is conspicuously marked or otherwise
|
|
532
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
533
|
+
|
|
534
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
535
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
536
|
+
subsequently incorporated within the Work.
|
|
537
|
+
|
|
538
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
539
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
540
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
541
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
542
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
543
|
+
Work and such Derivative Works in Source or Object form.
|
|
544
|
+
|
|
545
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
546
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
547
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
548
|
+
(except as stated in this section) patent license to make, have made,
|
|
549
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
550
|
+
where such license applies only to those patent claims licensable
|
|
551
|
+
by such Contributor that are necessarily infringed by their
|
|
552
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
553
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
554
|
+
institute patent litigation against any entity (including a
|
|
555
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
556
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
557
|
+
or contributory patent infringement, then any patent licenses
|
|
558
|
+
granted to You under this License for that Work shall terminate
|
|
559
|
+
as of the date such litigation is filed.
|
|
560
|
+
|
|
561
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
562
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
563
|
+
modifications, and in Source or Object form, provided that You
|
|
564
|
+
meet the following conditions:
|
|
565
|
+
|
|
566
|
+
(a) You must give any other recipients of the Work or
|
|
567
|
+
Derivative Works a copy of this License; and
|
|
568
|
+
|
|
569
|
+
(b) You must cause any modified files to carry prominent notices
|
|
570
|
+
stating that You changed the files; and
|
|
571
|
+
|
|
572
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
573
|
+
that You distribute, all copyright, patent, trademark, and
|
|
574
|
+
attribution notices from the Source form of the Work,
|
|
575
|
+
excluding those notices that do not pertain to any part of
|
|
576
|
+
the Derivative Works; and
|
|
577
|
+
|
|
578
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
579
|
+
distribution, then any Derivative Works that You distribute must
|
|
580
|
+
include a readable copy of the attribution notices contained
|
|
581
|
+
within such NOTICE file, excluding those notices that do not
|
|
582
|
+
pertain to any part of the Derivative Works, in at least one
|
|
583
|
+
of the following places: within a NOTICE text file distributed
|
|
584
|
+
as part of the Derivative Works; within the Source form or
|
|
585
|
+
documentation, if provided along with the Derivative Works; or,
|
|
586
|
+
within a display generated by the Derivative Works, if and
|
|
587
|
+
wherever such third-party notices normally appear. The contents
|
|
588
|
+
of the NOTICE file are for informational purposes only and
|
|
589
|
+
do not modify the License. You may add Your own attribution
|
|
590
|
+
notices within Derivative Works that You distribute, alongside
|
|
591
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
592
|
+
that such additional attribution notices cannot be construed
|
|
593
|
+
as modifying the License.
|
|
594
|
+
|
|
595
|
+
You may add Your own copyright statement to Your modifications and
|
|
596
|
+
may provide additional or different license terms and conditions
|
|
597
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
598
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
599
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
600
|
+
the conditions stated in this License.
|
|
601
|
+
|
|
602
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
603
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
604
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
605
|
+
this License, without any additional terms or conditions.
|
|
606
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
607
|
+
the terms of any separate license agreement you may have executed
|
|
608
|
+
with Licensor regarding such Contributions.
|
|
609
|
+
|
|
610
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
611
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
612
|
+
except as required for reasonable and customary use in describing the
|
|
613
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
614
|
+
|
|
615
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
616
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
617
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
618
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
619
|
+
implied, including, without limitation, any warranties or conditions
|
|
620
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
621
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
622
|
+
appropriateness of using or redistributing the Work and assume any
|
|
623
|
+
risks associated with Your exercise of permissions under this License.
|
|
624
|
+
|
|
625
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
626
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
627
|
+
unless required by applicable law (such as deliberate and grossly
|
|
628
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
629
|
+
liable to You for damages, including any direct, indirect, special,
|
|
630
|
+
incidental, or consequential damages of any character arising as a
|
|
631
|
+
result of this License or out of the use or inability to use the
|
|
632
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
633
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
634
|
+
other commercial damages or losses), even if such Contributor
|
|
635
|
+
has been advised of the possibility of such damages.
|
|
636
|
+
|
|
637
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
638
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
639
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
640
|
+
or other liability obligations and/or rights consistent with this
|
|
641
|
+
License. However, in accepting such obligations, You may act only
|
|
642
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
643
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
644
|
+
defend, and hold each Contributor harmless for any liability
|
|
645
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
646
|
+
of your accepting any such warranty or additional liability.
|
|
647
|
+
|
|
648
|
+
END OF TERMS AND CONDITIONS
|
|
649
|
+
|
|
650
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
651
|
+
|
|
652
|
+
To apply the Apache License to your work, attach the following
|
|
653
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
654
|
+
replaced with your own identifying information. (Don't include
|
|
655
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
656
|
+
comment syntax for the file format. We also recommend that a
|
|
657
|
+
file or class name and description of purpose be included on the
|
|
658
|
+
same "printed page" as the copyright notice for easier
|
|
659
|
+
identification within third-party archives.
|
|
660
|
+
|
|
661
|
+
Copyright [yyyy] [name of copyright owner]
|
|
662
|
+
|
|
663
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
664
|
+
you may not use this file except in compliance with the License.
|
|
665
|
+
You may obtain a copy of the License at
|
|
666
|
+
|
|
667
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
668
|
+
|
|
669
|
+
Unless required by applicable law or agreed to in writing, software
|
|
670
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
671
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
672
|
+
See the License for the specific language governing permissions and
|
|
673
|
+
limitations under the License.
|
|
674
|
+
|
|
675
|
+
### LLVM Exception to the Apache License 2.0
|
|
676
|
+
|
|
677
|
+
LLVM compiler-rt (`fp_add_impl.inc`, `fp_mul_impl.inc`; "Part of the LLVM
|
|
678
|
+
Project, under the Apache License v2.0 with LLVM Exceptions") and the
|
|
679
|
+
compiler-rt routines inside Rust's `compiler_builtins` are under the Apache
|
|
680
|
+
License 2.0 with this exception:
|
|
681
|
+
|
|
682
|
+
---- LLVM Exceptions to the Apache 2.0 License ----
|
|
683
|
+
|
|
684
|
+
As an exception, if, as a result of your compiling your source code, portions
|
|
685
|
+
of this Software are embedded into an Object form of such source code, you
|
|
686
|
+
may redistribute such embedded portions in such Object form without complying
|
|
687
|
+
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
|
688
|
+
|
|
689
|
+
In addition, if you combine or link compiled forms of this Software with
|
|
690
|
+
software that is licensed under the GPLv2 ("Combined Software") and if a
|
|
691
|
+
court of competent jurisdiction determines that the patent provision (Section
|
|
692
|
+
3), the indemnity provision (Section 9) or other Section of the License
|
|
693
|
+
conflicts with the conditions of the GPLv2, you may retroactively and
|
|
694
|
+
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
|
695
|
+
the License, but only in their entirety and only with respect to the Combined
|
|
696
|
+
Software.
|