Skip to content

JMat is a library which implements fundamental matrix capabilities in Java.

License

Notifications You must be signed in to change notification settings

JoshMcDonagh/JMat

Repository files navigation

JMat: Matrices for Java JMat is a library developed for Java which allows for the use and manipulation of matrices. The library handles fundamental mathematical operations on matrices, and also implements further functionality including discretisation, I/O, and sorting.

JMat Core

The core JMat package implements the basic matrix functionality for the whole library using three main types of matrix object: the generic matrix (GMatrix), the comparable matrix (CMatrix), and the double matrix (DMatrix). Using these matrix objects, use and manipulation of matrices is possible.

JMat core features include:

  • Generating and creating matrix objects
  • Manipulating matrix objects (such as extracting matrix values, rows, and columns; inserting or deleting rows and columns; and transposition)
  • Generating identity matrices
  • Sorting matrices
  • Merging matrices
  • Performing matrix mathematics (including calculating the determinant of a matrix, the trace of a matrix, the minors of a matrix, the cofactors of a matrix, the adjoint matrix of a matrix, the inverse of a matrix, as well as performing addition, subtraction, multiplication, and division using matrices)
  • Discretising matrices with continuous values (either by frequency or by width)
  • Importing and exporting matrices as text files or CSV files

Building JMat

To build the JMat library, first clone the Git main branch (which holds the latest version of JMat) using the command:

$ git clone https://github.com/JoshMcDonagh/JMat.git

JMat uses Gradle as the build system, with each JMat package contained in sub-folders (there is only one that currently exists in this version):

  • jmat.core - this is the library package which contains the fundamental matrix functionality.

Within the Git folder cloned, use the following command to build the JMat library and run all of the JUnit tests:

$ gradle build

Alternatively, access https://github.com/JoshMcDonagh/JMat/releases for the latest version of the JMat library.

Donations

I continue to support and develop JMat in my spare time and receive no commercial or financial advantage from it.

However, if you'd like to, I'd greatly appreciate any donation you're willing to give. All the money goes towards maintaining this library and supporting me and my current studies at university.

To donate, you can either follow this link: https://www.paypal.com/donate?hosted_button_id=RYM9L6TNB7SGC

Or scan the following QR code:

enter image description here

License

Copyright 2021 Joshua McDonagh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.