Skip to content

Instantly share code, notes, and snippets.

@adrn
adrn / Jax-gala-orbit-integrate.ipynb
Created December 7, 2022 20:32
JAX gala test/demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emmeowzing
emmeowzing / inverter.c
Created April 27, 2017 14:22
Example matrix inversion using the GNU Scientific Library
/* A simple example of inverting a matrix using the gsl */
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_linalg.h>
@understeer
understeer / mpitest.c
Created March 10, 2014 10:32
OpenMPI test sample
/*
* Usage:
* mpicc mpitest.c -o mpitest
* mpirun -np 2 -H `hostname` ./mpitest
*/
#include <stdio.h>
#include <mpi.h>
int main(int argc, char *argv[])
@YukiSakamoto
YukiSakamoto / hdf5_simple.cpp
Created August 23, 2013 13:41
simple example to write hdf5 using c++.
#include <string>
#include <iostream>
#include "H5Cpp.h"
#define MAX_NAME_LENGTH 32
const std::string FileName("SimpleCompound.h5");
const std::string DatasetName("PersonalInformation");
const std::string member_age("Age");
const std::string member_sex("Sex");
const std::string member_name("Name");