I hereby claim:
- I am sheljohn on github.
- I am jhadida (https://keybase.io/jhadida) on keybase.
- I have a public key ASA5lXj8BvOyYA8en01OimcYim0sgaXQ-DNHYacTsjBkGgo
To claim this, I am signing this object:
import os, stat, math | |
import pwd, grp | |
from datetime import datetime | |
''' | |
Wrapper for os.stat_result, which contains all the information I usually need, | |
in a form that is simple to interact with. | |
For example: |
# Take any version of Python that can import numpy, and run this in a terminal | |
D=$(mktemp -d) # temporary folder | |
pushd "$D" # move there | |
mkdir foo # create subfolder | |
echo 'import numpy' >| foo/a.py # script a.py | |
echo 'x++' >| foo/math.py # script math.py (invalid) | |
python foo/a.py # run a.py | |
popd # leave temp folder |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Singleton publish/subscribe hub. | |
*/ | |
module.exports = (function() { | |
const channel = {}; | |
const noset = new Set(); | |
return { | |
publish: (name,data) => { |
#!/bin/bash | |
# create temporary directory and move to it | |
FOLDER=$(mktemp -d) | |
echo "Moving to folder $FOLDER" | |
cd $FOLDER | |
# create a 50M file | |
FILE=test.ntfs | |
echo "Creating empty file $FILE" |
# Python 2, class | |
# Author: J.Hadida (jhadida87 at ggooglemail) | |
class ColorPrinter: | |
""" | |
Usage: | |
cprint = ColorPrinter() | |
cprint.cfg('c','m','bux').out('Hello','World!') | |
cprint.rst().out('Bye now...') |
src/
directorysrc/ft_getopt.c
and replace any mxErrMsgTxt
to mexErrMsgTxt
(notice the 'mex' instead of 'mx')mxSerialize.c
to mxSerialize.cpp
(same for mxDeserialize
)// MX_API_VER has unfortunately not changed between R2013b and R2014a,
// so we use the new MATRIX_DLL_EXPORT_SYM as an ugly hack instead
#if defined(__cplusplus) && defined(MATRIX_DLL_EXPORT_SYM)
namespace matrix{ namespace detail{ namespace noninlined{ namespace mx_array_api{
I actually found very few indications on the net to install Armadillo with OpenBLAS on Ubuntu, and I ran into problems when I tried to install the Ubuntu pre-build packages (using apt-get
). So I decided to share my experience building the whole thing from scratch, hopefully this can serve as a step-by-step through the install.
As of writing this, I'm using Ubuntu desktop 14.04 with an Intel i7 4820k Ivy-Bridge E CPU.