The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (135) [Avatar] Offline
#2
Re: Sparse matrices
Well-spotted! You are quite right.

Thanks again, Paul.

Vern