Showing posts in category Code. Show all posts

Saving large files efficiently in Matlab

March 21, 2013 at 12:53 PM | categories: Code, Matlab | View Comments

You might have thought functionality as basic as saving numerical data to a file would be something you wouldn't have to worry too much about with a product as mature as MATLAB... You'd be wrong! The standard MATLAB file formats have evolved a bit over the years. Here are...

Sharedmatrix with Parallel Computing Toolbox

March 13, 2013 at 12:58 PM | categories: Code, Matlab | View Comments

The sharedmatrix package allows the sharing of memory between Matlab sessions. It uses operating system shared memory and implements a proxy interface which allows you to use objects in this shared memory as if they were normal Matlab variables. This is very useful, for example when using the Parallel Computing...

Intel Fortran with MATLAB

March 08, 2013 at 12:45 PM | categories: Fortran, Code, Matlab | View Comments

It seems that in recent versions of Matlab (from at least R2012a), some cleanup was performed on the fintrf.h header file for the Fortran interface. Where the check for 64 bit platforms is performed, what used to be (R2011a) #if defined(__x86_64__) || defined(_M_AMD64) || defined(__amd64) || \ ...

Blogofile setup : date modified and category headings

December 20, 2011 at 12:31 PM | categories: Code | View Comments

I recently moved this site to Blogofile, a Python + Mako static site and blog generator. It works really nicely, but there were a couple of additions I made that might be interesting for others. One feature my old Template Toolkit based website had was the automatic updating of...

Nerdy thought for the day : cache hash collisions

December 19, 2011 at 06:39 PM | categories: Code | View Comments

Saw this interesting StackOverflow question linked on reddit this morning. I thought I had a bit of a handle on cache use after reading Using OpenMP but I must admit I had trouble understanding the answer. This great comment really bought it home for me: Caches are hash...
« Previous Page