Skip to content

Instantly share code, notes, and snippets.

View qacwnfq's full-sized avatar
🎯
Focusing

Johann Fredrik Jadebeck qacwnfq

🎯
Focusing
  • Forschungszentrum Jülich
View GitHub Profile
@michaelosthege
michaelosthege / install-pymc3.bat
Last active August 10, 2020 10:21
pymc3-installation
conda create -n pm3 python=3.7 pandas jupyter matplotlib mkl-service libpython m2w64-toolchain coverage xlrd openpyxl scipy -y
activate pm3
# install last release from PyPI
pip install pymc3
# or latest version directly from master:
pip install git+https://github.com/pymc-devs/pymc3
# or from master in editable mode:
git clone https//github.com/pymc-devs/pymc3 pymc3
cd pymc3
@bellbind
bellbind / eigenvalues.js
Last active December 27, 2021 17:37
[javascript] compute eigenvalues with QR method and Householder Trans
"use strict";
// helpers
function mat2d(mat) {
const n = Math.sqrt(mat.length);
return Array.from(Array(n), (_, i) => mat.slice(i * n, i * n + n));
}
function range(n, f = v => v) {
return Array.from(Array(n), (_, i) => f(i));
}
@lukauskas
lukauskas / parse_sbml_stoichiometry.py
Last active June 7, 2021 04:12
Parse SBML stoichiometry matrix
from __future__ import print_function
import libsbml
import argparse
def _parser():
parser = argparse.ArgumentParser(description="Parse stoichiometry matrix of SBML file")
parser.add_argument('file', metavar="filename", type=argparse.FileType('r'),
help="Filename of SBML file to parse")
#include <iostream>
#include <hdf5.h>
// Constants
const char saveFilePath[] = "test.h5";
const hsize_t ndims = 2;
const hsize_t ncols = 3;
int main()