oneil.paul (4) [Avatar] Offline
#1
Looks like a very minor correction but on Page 77 the first line you typed the matrix as follows

matrix = [[3, 0, -2, 11], [0, 9, 0, 0], [0, 7, 0, 0], [0, 0, 0, -5]]

then represented the same matrix as follows

matrix = {(0, 0):3, (0, 2):-2, (0, 3):11, (1, 1):9, (2, 1):7, (3, 3):5}

the 5 at the end should be -5?
naomi.ceder (134) [Avatar] Offline
#2
Re: Sparse matrices
Well-spotted! You are quite right.

Thanks again, Paul.

Vern