Skip to content

Commit 900013a

Browse files
committed
adding licensing
1 parent 2835a6c commit 900013a

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ lost profits, business interruption, or indirect special or consequential
2222
damages of any kind.
2323

2424

25+
Code in bessel.py (fractional-order Bessel K functions) is derived from
26+
TensorFlow Probability under this license:
27+
28+
Copyright 2020 The TensorFlow Probability Authors.
29+
30+
Licensed under the Apache License, Version 2.0 (the "License");
31+
you may not use this file except in compliance with the License.
32+
You may obtain a copy of the License at
33+
34+
http://www.apache.org/licenses/LICENSE-2.0
35+
36+
Unless required by applicable law or agreed to in writing, software
37+
distributed under the License is distributed on an "AS IS" BASIS,
38+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39+
See the License for the specific language governing permissions and
40+
limitations under the License.
41+
42+
2543
Code in angle.py and celestial.py is based on LSSTDESC/Coord under this license:
2644

2745
Copyright (c) 2013-2017 LSST Dark Energy Science Collaboration (DESC)

jax_galsim/bessel.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,23 @@ def k1_large(x):
321321

322322
# =====================================================================
323323
# Modified Bessel K_v(x) for fractional order
324-
# Ported from TensorFlow Probability's bessel.py (Apache 2.0 License)
325-
# Uses Temme's method (|v| < 50) + Olver's uniform asymptotic (|v| >= 50)
324+
#
325+
# The functions below (_sqrt1px2, _evaluate_temme_coeffs,
326+
# _temme_series_kve, _continued_fraction_kve, _olver_kve, _temme_kve,
327+
# _kve_core) and the _ASYMPTOTIC_OLVER_COEFFICIENTS constant are
328+
# derived from TensorFlow Probability's bessel.py:
329+
# https://github.com/tensorflow/probability
330+
#
331+
# Original copyright and license:
332+
# Copyright 2020 The TensorFlow Probability Authors.
333+
# Licensed under the Apache License, Version 2.0.
334+
#
335+
# Modifications from the original:
336+
# - Ported from TensorFlow/TFP APIs to pure JAX (jax.numpy, jax.lax)
337+
# - Removed I_v (bessel_ive) computation; only K_v is computed
338+
# - Removed log-space output option
339+
# - Removed negative-v correction for I_v
340+
# - Simplified to scalar-only core (vectorization via jax.vmap)
326341
# =====================================================================
327342

328343
# Olver expansion polynomial coefficients (10 terms, up to 31 coefficients each)

0 commit comments

Comments
 (0)