Warning: Inputs contain values larger than the largest consecutive flint

Hello all.
Does anyone know under which circumstances this warning is raised? I got this when I used the gcd function with gcd(x,2^11), where x is a vector with randomly generated integers.
Thank you in advance for any insight.

 채택된 답변

You got too big integers for the function to be accurate.
function warnIfGreatThanLargestFlint(A,B,classCheck)
if strcmp(classCheck,'double')
largestFlint = 2^53-1;
else % single
largestFlint = 2^24-1;
end
if any(abs(A(:)) > largestFlint) || any(abs(B(:)) > largestFlint)
warning('MATLAB:gcd:largestFlint', '%s\n%s', ...
'Inputs contain values larger than the largest consecutive flint.', ...
' Result may be inaccurate.');
end

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

태그

질문:

2011년 4월 9일

답변:

2013년 10월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by