- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
| /* 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> | |
<hash> with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
| /* | |
| * Usage: | |
| * mpicc mpitest.c -o mpitest | |
| * mpirun -np 2 -H `hostname` ./mpitest | |
| */ | |
| #include <stdio.h> | |
| #include <mpi.h> | |
| int main(int argc, char *argv[]) |
| #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"); |