/usr/share/octave/site/m/sundialsTB/cvodes/cvm/cvm_rhsS.m is in octave-sundials 2.5.0-3+b1.
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 11 12 13 14 15 16 17 | function [ySd, flag, new_data] = cvm_rhsS(t, y, yd, Ns, yS, fct, data)
%
% Wrapper around the actual user-provided Matlab function
%
N = length(y);
yS = reshape(yS,N,Ns);
if isempty(data)
[ySd, flag] = feval(fct,t,y,yd,yS);
new_data = [];
else
[ySd, flag, new_data] = feval(fct,t,y,yd,yS,data);
end
ySd = reshape(ySd,N*Ns,1);
|