-1

IF you look at this link, you'll see that MAXITR is an internal parameter of the dbsqr FORTRAN LAPACK routine.

I have found this link, to call FORTRAN functions in C, but how do I set MAXITR? It doesn't seem to be a parameter. Is there any way to do this?

Syd Kerckhove
  • 783
  • 5
  • 19

2 Answers2

0

MAXITR is a named constant (aka parameter, in C "parameter" means what in Fortran is called "argument") in the subroutine. You have to go to the source code and change it there, if you need that.

INTEGER maxitr
parameter( maxitr = 6 )

(lines 255--256)

Change the number 6 to whatever you need.

0

A Fortran parameter is not an argument that can be passed to the function, nor a value that can be modified at runtime. Rather it is a named constant that is determined at compile time.

So, the only way to modify that value is to change it in the Fortran source code, and compile your own LAPACK.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490