view +scheme/error1d.m @ 606:c14875cf7ae6 feature/grids

Make blockMatrix.toMatrix faster for large matrices.
author Martin Almquist <malmquist@stanford.edu>
date Sat, 14 Oct 2017 22:24:19 -0700
parents ed6a704b028d
children
line wrap: on
line source

function e = error1d(discr, v1, v2)
    h = discr.h;
    e = sqrt(h*sum((v1-v2).^2));
end