C code and demos

System requirements

Any system supports C and MPI. This instruction is for Ubuntu.

Package installation

A C compiler, MPI, and GSL are needed.

Install the GCC compiler

sudo apt-get install gcc

Install an MPI implementation, either OpenMPI or MPICH.

  • OpenMPI

sudo apt-get install libopenmpi-dev openmpi-bin openmpi-doc

  • MPICH

sudo apt-get install mpich2

Install GSL

Our code uses the GNU Scientific Library (GSL) for linear operations. This package is easy to install, well documented, and has a number of convenient data structures and functions for manipulating vectors and matrices, including a high-level BLAS interface. See GSL official website for instructions.

Data generator

Here we provide a small datasets with Dimension 256*512. Specifically, Folder i coresponds to the dataset which has been partitioned into i blocks by columns. We also provide the Matlab source code for generating the synthetic data.

C codes for LASSO

Sparse logistic regression

coming soon…

Sparse SVM

coming soon…


« Back