/usr/share/votca/scripts/inverse/linsolve.m is in votca-csg-scripts 1.4.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | A = load('$name.gmc');
b = load('$name.imc');
I=eye(size(A));
x(:,1)=b(:,1);
x(:,2)=-(A'*inv((A'*A)+$reg*I))*b(:,2);
save '$name_out' x '-ascii'
quit
|