Walking Randomly - RSS Feed

Because it's more fun than getting there in a straight line.

Latest articles

Running MATLAB’s GPU Bench on an NVIDIA GTX 3070

Just over 4 years ago I was very happy with the 1.2 Teraflops of single precision performance I measured on my then-new Dell XPS 95600 laptop using MATLAB’s GPU Bench and noted that its performance was on-par with the first supercomputer I supported professionally. Double precision performance stank of course but I had gotten used to that with laptop...

Running MATLAB’s GPU Bench on a GTX 3070

Just over 4 years ago I was very happy with the 1.2 Teraflops of single precision performance I measured on my then-new Dell XPS 95600 laptop using MATLAB’s GPU Bench and noted that its performance was on-par with the first supercomputer I supported professionally. Double precision performance stank of course but I had gotten used to that with laptop...

Carnival of mathematics #194

Welcome to the 194th Carnival of Mathematics!  I am extremely late in posting this…so late in fact that the 195th edition as already been published! 194 has a few interesting properties.  According to its wikipedia entry, 194 is an odious number that is also the smallest Markov number that is neither a Fibonacci number nor a Pell number. It’s  the...

No Fortran? No data science in R and Python!

Earlier this week Apple announced their new, Arm-based ‘Apple Silicon’ machines to the world in a slick marketing event that had many of us reaching for our credit cards. Simultaneously, The Numerical Algorithms Group announced that they had ported their Fortran Compiler to the new platform. At the time of writing this is the only Fortran compiler publicly...

Side by side comparison of Microsoft Azure’s High Performance Computing (HPC) Instances

At the time of writing, Microsoft Azure has 3 High Performance Computing instances available and I often find myself looking up their specifications and benchmark results when discussing their various methods with colleagues and clients.  All the information is out there but seems to be spread across several documents. To save me the trouble in future,...

Programmatically listing all available regions in Microsoft Azure

When using the Azure Command Line Interface (CLI), it is often necessary to explicitly state which region you want to perform an operation in.  For example, when creating a resource group az group create --name <rg_name> --location <location> Where you replace <locaton>with the region where you want to create the resource group....

Academic Benefits of Using git and GitHub

Feel free to discuss and contribute to this article over at the corresponding GitHub repo. Many people suggest that you should use version control as part of your scientifc workflow. This is usually quickly followed up by recommendations to learn git and to put your project on GitHub. Learning and doing all of this for the first time takes a lot of...

Hypot – A story of a ‘simple’ function

My stepchildren are pretty good at mathematics for their age and have recently learned about Pythagora’s theorem $c=\sqrt{a^2+b^2}$ The fact that they have learned about this so early in their mathematical lives is testament to its importance. Pythagoras is everywhere in computational science and it may well be the case that you’ll need to compute...

When numpy.empty is not faster than numpy.zeros

In many introductions to numpy, one gets taught about np.ones, np.zeros and np.empty. The accepted wisdom is that np.empty will be faster than np.ones because it doesn’t have to waste time doing all that initialisation. A quick test in a Jupyter notebook shows that this seems to be true! import numpy as np N = 200 zero_time = %timeit -o some_zeros...

Second Order Cone Programming (SOCP) using the NAG Library for Python

What is Second Order Cone Programming (SOCP)?   Second Order Cone Programming (SOCP) problems are a type of optimisation problem that have applications in many areas of science, finance and engineering. A summary of the type of problems that can make use of SOCP, including things as diverse as designing antenna arrays, finite impulse response (FIR)...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!