bueler / p4pdes

C and Python examples from my book on using PETSc and Firedrake to solve PDEs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use v[4][4] initialization for Mat A which appears in Figure 2.3

bueler opened this issue · comments

Note j[4] is initialized already. It is much clearer code if I do

double v[4][4] = {{1.0, 2.0, 3.0, 0.0},
                  {2.0, 1.0, -2.0, -3.0},
...