You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: isnan.m
    path of file: ./repos/spm12/@file_array
    
    the code of the file until where you have to start completion: function out = isnan(fa)
% Logical array containing true where the elements of file_array are NaN's
% FORMAT isnan(fa)
% fa - a file_array
%__________________________________________________________________________
% Copyright (C) 2005-2018 Wellcome Trust Centre for Neuroimaging

%
% $Id: isnan.m 7501 2018-11-30 12:16:58Z guillaume $


bs  = 10240;
m   = size(fa);
fa  = reshape(fa,prod(m),1);
n   = prod(m);
out = false(m);

    
function out = isnan(fa)
% Logical array containing true where the elements of file_array are NaN's
% FORMAT isnan(fa)
% fa - a file_array
%__________________________________________________________________________
% Copyright (C) 2005-2018 Wellcome Trust Centre for Neuroimaging

%
% $Id: isnan.m 7501 2018-11-30 12:16:58Z guillaume $


bs  = 10240;
m   = size(fa);
fa  = reshape(fa,prod(m),1);
n   = prod(m);
out = false(m);
for i=1:ceil(n/bs)
    ii      = ((((i-1)*bs)+1):min((i*bs),n))';
    tmp     = subsref(fa,struct('type','()','subs',{{ii}}));
    out(ii) = isnan(tmp);
end