git clone git://git.code.sf.net/p/ngspice/ngspice
cd ngspice
./autogen.sh
mkdir release
cd release
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import os | |
from itertools import cycle, product | |
DB_FILE = "data.sqlite3" | |
num_rows = 100000000 | |
elements = cycle(product(["name1", "name2", "name3"], [1,2,3])) | |
conn = sqlite3.connect(DB_FILE) | |
curs = conn.cursor() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import os | |
from itertools import cycle, product | |
DB_FILE = "data.sqlite3" | |
num_rows = 100000000 | |
elements = cycle(product(["name1", "name2", "name3"], [1,2,3])) | |
conn = sqlite3.connect(DB_FILE) | |
curs = conn.cursor() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:test] | |
command=/usr/bin/python /home/ubuntu/test.py | |
directory=/home/ubuntu | |
autostart=true | |
autorestart=true | |
startretries=3 | |
stderr_logfile=/home/ubuntu/test.err.log | |
stdout_logfile=/home/ubuntu/test.out.log | |
user=ubuntu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned char uint8_t; | |
#define data_fmt "%8f" | |
typedef double Scalar; | |
typedef Scalar* Array1d; | |
typedef Scalar** Array2d; | |
typedef Scalar*** Array3d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -not -iwholename \'*.git*\' -type f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name \*.txt | | |
sed -e 'h;s/^/cp /p' -e 'g' -e 's=/=_=g' -e 's/^\._//' -e 's/$/.tmpl/' | | |
paste - -" |
Usage:
struct X
{
int i;
};
int main()
.ccls examples Example A
clang
%c -std=c11
%cpp -std=c++2a
%h %hpp --include=Global.h
-Iinc
-DMACRO
My question is simple... How could I check the version of GMP installed on my machine? What about MPFR? And What about CamlIDL?
Thank you very much
To check for GMP(MPIR) version, access string __gmp_version(__mpir_version) in dynamic library called libgmp.so.X.Y.Z(libmpir.so.X.Y.Z). Your standard library directory might contain more than one such file (this happens if you install newer version of GMP or MPIR but your package manager chooses to keep old version because it is still needed).
Cutting off a small Python code fragment from [benchmark_det_Dixon.py][1]:
import ctypes
so_name='/usr/lib/x86_64-linux-gnu/libgmp.so'