Hi Friends,
I have an ADA function that needs to be converted to Fortran.
function Sumer (Mat: in Mat_Type) return Float is
Sum: Float := 0.0;
begin
for Row in Mat 'range (1) loop
for col in Mat 'range(2) loop
Sum := Sum + Mat(Row, Col);
end loop;
end loop;
return Sum;
end Sumer;
I have an ADA function that needs to be converted to Fortran.
function Sumer (Mat: in Mat_Type) return Float is
Sum: Float := 0.0;
begin
for Row in Mat 'range (1) loop
for col in Mat 'range(2) loop
Sum := Sum + Mat(Row, Col);
end loop;
end loop;
return Sum;
end Sumer;