Matrix-vector multiplication in weak formulation

Your script doesn’t even run.