larmorx-gpl
Copyright 2026 Karel Lopez Vilaret

larmorx-gpl holds bit-exact replicas of neuroimaging tools of the GPL licence family: Rust
translations of their source code, written to give their output bit for bit. Today it holds one,
tedana's t2smap. The larmorx-gpl program (crates larmorx-gpl-cli and larmorx-gpl-tedana) is
distributed under the GNU General Public License, version 3 only (see LICENSE). It comes with
ABSOLUTELY NO WARRANTY. Each translated file names its licence in an SPDX header and its origin in
a comment; each crate's PROVENANCE.md lists the upstream files it was translated from and the
changes made.

The program is a separate work from larmorx (Apache-2.0), which runs it as a separate process
when it is installed and exchanges files with it only. It does not present itself as tedana or
as any other upstream tool, and it is not endorsed by tedana's developers.

Source code. The source of this directory (the tedana translation and the program) is in every
larmorx-gpl wheel (its licence files). The program's complete Corresponding Source, with the
larmorx crates it is built with (crates/ of the repository) and the Rust crates its Cargo.lock
pins, is published at https://github.com/karellopez/larmorx (directory crates-gpl/, at the
commit of each release; the release's tag names it).


Translated works
================

tedana 26.0.3 (TE-Dependent ANAlysis of multi-echo fMRI), Copyright 2023, The ME-ICA Developers
(https://github.com/ME-ICA/tedana) - GNU Lesser General Public License, version 2.1
  Translated: the t2smap workflow and command line (tedana/workflows/t2smap.py, parser_utils.py)
  and the parts of tedana/decay.py, combine.py, utils.py, io.py and
  resources/config/outputs.json it uses (crate larmorx-gpl-tedana; PROVENANCE.md lists them).
  Its licence text, as tedana ships it, is LICENSES/LGPL-2.1-tedana.txt. tedana names version
  2.1 of the LGPL and no later version, and none of its files carries another notice.
  Modified: translated from Python to Rust in 2026 by Karel Lopez Vilaret; the defects of
  tedana's that change results are corrected by default and reproduced on request
  (LARMORX_UPSTREAM_DEFECTS=reproduce; the TED entries of the repository's
  docs/findings/upstream-defects.md); the maths default to correctly rounded functions.
  Section 3 of the LGPL version 2.1 permits applying the terms of the ordinary GNU General
  Public License to a copy of the library instead, naming a version newer than 2: this
  translation is distributed under the GNU General Public License, version 3 only, so that it
  can include the Apache-2.0 larmorx crates it is built with. The change is irreversible for
  this copy (section 3).


Included works
==============

The program includes crates of larmorx (larmorx-core, larmorx-io, larmorx-interp,
larmorx-transform, larmorx-optim), Copyright 2026 Karel Lopez Vilaret, licensed under the Apache
License, Version 2.0 (LICENSES/Apache-2.0.txt), with the notices of the works they were
translated from (numpy, SciPy, OpenBLAS and the reference LAPACK, CPython, nibabel, nilearn and
others) in LICENSES/NOTICE-larmorx.txt, a copy of the repository's NOTICE. Apache-2.0 code may be
included in a work licensed under the GNU GPL version 3.


Verification tools (tools/, never distributed)
==============================================

The GNU C Library 2.35 (sinf, cosf, tanhf, expm1f, cbrtf) - GNU Lesser General Public License,
version 2.1 or any later version
  Copyright (C) 2018-2022 Free Software Foundation, Inc. (sinf, cosf); Copyright (C) 1997-2022
  Free Software Foundation, Inc. (cbrtf). tanhf and expm1f come from fdlibm: "Copyright (C)
  1993 by Sun Microsystems, Inc. All rights reserved. Developed at SunPro, a Sun Microsystems,
  Inc. business. Permission to use, copy, modify, and distribute this software is freely
  granted, provided that this notice is preserved."
  Translated in tools/glibc-reference/src/sincosf.rs and floatmath.rs, modified from the
  originals. Section 3 of the LGPL-2.1 permits applying the GNU GPL (version 2 or later)
  instead; the translation is distributed under the GNU GPL version 3 or later. The text of the
  LGPL-2.1 is in LICENSES/LGPL-2.1.txt.

The tools include crates of larmorx (larmorx-core, larmorx-afni-replica, ...), Copyright 2026
Karel Lopez Vilaret, licensed under the Apache License, Version 2.0 (the repository's LICENSE),
with the notices of the works they were translated from in the repository's NOTICE. Apache-2.0
code may be included in a work licensed under the GNU GPL version 3.
