Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

correct size of tmp array for DFGMRES?

gregfi04
Beginner
310 Views
Hello,

I'm seeing two different sizes listed for the "tmp" array supplied to DFGMRES:

((2*ipar(15)+1)*n+ipar(15)*ipar(15)+9)/2 + 1) from here, and

((2*ipar(15)+1)*n+ipar(15)*(ipar(15)+9)/2 + 1)) from here.

What is the correct size of "tmp"?

Thanks,
Greg
0 Kudos
1 Reply
Alexander_K_Intel2
310 Views
Hi Greg,
In the first variant number of left brackets is not equal to number of right brackets so only the second variant could be correct :)
With best regards,
Alexander Kalinkin
0 Kudos
Reply