Category: C programming
-
Reading Plexon files in Linux or Mac
Updates (12/10 /2011): Plexon now offers a mex extension for Matlab which compiles on Linux and Mac. I have a Python .plx file reader available, and Huang Xin has a better one based on ctypes, part of RealTimeElectrophy. Plexon hardware is meant to interface with Windows-only tools (including recording software). I think that for such…
-
Gibbs sampler in Matlab using mexme
Darren Wilkinson has a nice post up comparing different programming languages (C, Java, scala, Python, and R) for writing Gibbs samplers. Unsurprisingly, C is fastest, although it is certainly not the easiest language to program in. In particular, I/O is a bitch. Others have suggested an interesting solution: write the core of the Gibbs sampler…
-
Speeding up numeric code: McFor and Theano
Matlab has high-level language constructs that make it easy to express linear algebra computations in a terse, intuitive syntax. Its flexibility as a scripting language, however, means that it has underwhelming performance in some circumstances. While Matlab’s just-in-time (JIT) compiler helps quite a bit, research has shown that there is much space for performance improvements.…
-
Programming for multi-core environments
CPUs with multiple cores are currently the norm. Getting optimal performance out of these systems is challenging. I recently read Parallel Programming in C with MPI and OpenMP by Michael Quinn, a book that, while released in 2004, remains relevant and actual. Dr. Quinn introduces two technologies which are available in C (and in Fortran…