Code covered by the BSD License  

Highlights from
trilin

trilin

by

 

Facilitates the reuse of matrix factorizations in large dense linear algebra problems.

isblank (A)
function answer = isblank (A)
    error(nargchk(1, 1, nargin, 'struct'));
    error(nargoutchk(0, 1, nargout, 'struct'));

    % degenerate shape:
    if ( isempty(A) || isscalar(A) || ~issquare(A) )
        answer = false;
        return;
    end
    
    answer = (nnz(A) == 0);
    %answer = ~any(A(:));  % should not be used because any() ignores NaNs.    
end

%!test
%! % isblank ()
%! do_test_blank_diag_tri_sym;

Contact us