/usr/share/votca/scripts/inverse/linsolve.py is in votca-csg-scripts 1.2.4-2.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #! /usr/bin/python
import numpy as np
A = np.loadtxt('$name.gmc');
b = np.loadtxt('$name.imc');
x = np.empty([len(b),2])
x[:,0]=b[:,0];
x[:,1] = -np.linalg.solve(A,b[:,1]);
np.savetxt('$name_out', x)
|