Any post containing code examples

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 ReadingControlling 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 ReadingGeneralised 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 ReadingThe 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 ReadingThe McNuggets Challenge

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 ReadingStatQuest PCA Example

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 ReadingNeural Network Basics