A friend asked some time before to develop a tool which counts the number of times a wazifa has been recited. It had to use only voice input when hands were not free such as during driving. Here is a version-0 of an attempt at solving the problem. A program is written in Matlab script […]

# Global warming calculation

Why Global Warming Will Cross a Dangerous Threshold in 2036 Emitting carbon dioxide at current rates will soon push Earth’s temperature up by 2 degrees Celsius. Here’s how to make the calculation yourself By Michael E. Mann | Mar 18, 2014 You can try this exercise yourself. The text below explains the variables and steps […]

# Sparse Finite-Element Matrices in MATLAB

March 1st, 2007 Creating Sparse Finite-Element Matrices in MATLAB I’m pleased to introduce Tim Davis as this week’s guest blogger. Tim is a professor at the University of Florida, and is the author or co-author of many of our sparse matrix functions (lu, chol, much of sparse backslash, ordering methods such […]

# flops in Matlab

Somebody asked how one may count the number of floating point operations in a MATLAB program.Prior to version 6, one used to be able to do this with the command flops, but this command is no longer available with the newer versions of MATLAB.flops is a relic from the LINPACK days of MATLAB (LINPACK has since been […]

# x = A b; in Matlab

x = A b; Is A square?no => use QR to solve least squares problem. Is A triangular or permuted triangular?yes => sparse triangular solve Is A symmetric with positive diagonal elements?yes => attempt Cholesky after symmetric minimum degree. Otherwise => use LU on A (:, colamd(A)) Advertisements

# Sparse Finite-Element Matrices in MATLAB

March 1st, 2007 Creating Sparse Finite-Element Matrices in MATLAB I’m pleased to introduce Tim Davis as this week’s guest blogger. Tim is a professor at the University of Florida, and is the author or co-author of many of our sparse matrix functions (lu, chol, much of sparse backslash, ordering methods such as amd and colamd, […]

# CRF Toolbox Updated

I updated the code for my Graphical Models / Conditional Random Fields toolbox This is a Matlab toolbox, though almost all the real work is done in compiled C++ for efficiency. The main improvements are: Lots of bugfixes. Various small improvements in speed. A unified CRF training interface to make things easier for those not […]

# Truncated Bi-Level Optimization

In 2012, I wrote a paper that I probably should have called “truncated bi-level optimization”. I vaguely remembered telling the reviewers I would release some code, so I’m finally getting around to it. The idea of bilevel optimization is quite simple. Imagine that you would like to minimize some function . However, itself is defined […]

# Julia, Matlab, and C

Julia is a new language in the same arena as Matlab or R. I’ve had failed attempts to quit the Matlab addiction in the past, making me generally quite conservative about new platforms. However, I’ve recently been particularly annoyed by Matlab’s slow speed, evil license manager errors, restrictions on parallel processes, C++ .mex file pain, […]

# Graphical Models Toolbox

I’m releasing code for a “toolbox” of code for learning and inference with graphical models. It is focused on parameter learning using marginalization in the high-treewidth setting. Though the code is, in principle, domain independent, I’ve developed it with vision problems in mind. This means that the code is A) efficient (all the inference algorithms […]