Any post containing code examples

ojAlgo's MatrixStore interface largely defines what you can do with matrices. There are many implementations of that interface provided. They store the elements differently and exploit structure to perform operations…

Continue Reading Sparse and Special Structure Matrices

v48.3.0 had a pure Neural Network focus: Support for floatPossibility to "get" all individual parameters of the networkNew file format to save trained networks to diskImproved separation between building, training and…

Continue Reading Neural Network New Features in v48.3

Controlling Concurrency ojAlgo is multithreaded – some operations are automatically divided to run in multiple threads. You don't have to do anything for this to happen. ojAlgo senses what hardware…

Continue Reading Controlling Concurrency

Generalised Eigenvalue Problems ojAlgo now has built-in direct support for (some) generalised eigenvalue problems where both A and B are symmetric/hermitian and B is positive definite. Each of these problems can be reduced to a standard…

Continue Reading Generalised Eigenvalue Problems

The diet problem is one of the earliest real-life problems to be solved using linear programming. This example shows how to use ojAlgo to model and solve a (miniature) instance…

Continue Reading The Diet Problem

This is not an eating competition, instead you have to think. The Challenge Chicken McNuggets can be ordered in the sizes of 6, 9 and 20 pieces. Being allowed to…

Continue Reading The McNuggets Challenge

ojAlgo v47.1.1 Primarily this release has improvements to the optimisation code:Extensive work on tuning the solvers (primarily the ConvexSolver) Major refactoring of test cases (mainly for LinearSolver and IntegerSolver).The presolve…

Continue Reading ojAlgo v47.1.1, ojAlgo-finance v2.1 & Financial Time Series Data

StatQuest (Josh Starmer) has published a great video explaining principal component analysis (PCA). In the video he mentions that he is using Singular Value Decomposition (SVD), but he doesn't actually…

Continue Reading StatQuest PCA Example

The linear algebra part of ojAlgo is one of its main attractions as well as an essential component to the other parts. It’s not difficult to use at all, but…

Continue Reading Linear Algebra Introduction

A previous post introduced ojAlgo's Artificial Neural Network feature. It did so by presenting a fully functional program that trained and evaluated a network model to categorise handwritten digits using the MNIST data set.…

Continue Reading Neural Network Basics