jtensors
The jtensors
package package implements a set of vector and matrix types,
intended for use in computer graphics software.
Features
- 2D, 3D, and 4D immutable vector types in
float
anddouble
versions. - 2D, 3D, and 4D immutable vector types in
int
andlong
versions. - 4D immutable quaternion types in
float
anddouble
versions. - 2x2, 3x3, and 4x4 mutable matrix types in
float
anddouble
versions. - Phantom-typed variants of all types for statically distinguishing between semantically different but otherwise type-compatible vectors and matrices.
- Fully documented (Javadoc).
- Massive battery of tests for checking the behaviour of matrix/vector implementations.
- 100% automated unit test coverage.
- OSGi-ready
- JPMS-ready
- ISC license.
Usage
See the documentation.
Releases & Development Snapshots
Releases
You can subscribe to the atom feed to be notified of project releases.
The most recently released version of the package is 11.0.0.
11.0.0 Release (2024-05-10Z)
- Update org.immutables:value:2.10.0 → 2.10.1.
- Update junit.version:5.10.1 → 5.10.2.
- Update org.slf4j:slf4j-api:2.0.10 → 2.0.13.
- Update ch.qos.logback:logback-classic:1.4.14 → 1.5.6.
- Update com.io7m.jequality:com.io7m.jequality.core:3.0.0 → 3.0.1.
- Update com.io7m.ieee754b16:com.io7m.ieee754b16.core:3.0.0 → 3.0.1.
- Move to new organization.
- Require JDK 17. (Backwards incompatible)
The compiled artifacts for the release (and all previous releases) are available on Maven Central.
Maven Modules
<dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.core</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.documentation</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.generators</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.orthonormalization</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.storage.api</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.storage.bytebuffered</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.storage.heap</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.tests</artifactId> <version>11.0.0</version> </dependency><dependency> <group>com.io7m.jtensors</group> <artifactId>com.io7m.jtensors.benchmarking</artifactId> <version>11.0.0</version> </dependency>
Previous Releases
The changelogs for the most recent previous releases are as follows:
10.0.0 Release (2024-05-10Z)
- Migrate to JUnit 5 (Tickets: 25)
- Add element-wise multiplication (Tickets: 24)
- Require JDK 11 and Java 11 at run-time (Backwards incompatible)
9.0.0 Release (2017-11-16Z)
- All modules are now Java 9 modules. JDK 9 is now required. (Backwards incompatible)
- Removed dependency on com.io7m.jnull. (Backwards incompatible)
8.2.0 Release (2017-06-27Z)
- Add bilinear interpolation methods. (Tickets: 22)
8.1.0 Release (2017-05-06Z)
- Add vector distance methods.
Development Snapshots
At the time of writing, the current unstable development version of the package is 11.0.1-SNAPSHOT.
Development snapshots may be available in the Central Portal Snapshots repository. Snapshots are published to this repository every time the project is built by the project's continuous integration system, but snapshots do expire after around ninety days and so may or may not be available depending on when a build of the package was last triggered.
Manual
User Manual
Sources
This project uses Git to manage source code.
Repository: https://www.github.com/io7m-com/jtensors
$ git clone --recursive https://www.github.com/io7m-com/jtensors
Issues
This project uses GitHub Issues to track issues.
License
Copyright © 2023 Mark Raynsford <code@io7m.com> https://www.io7m.com Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.