haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Documentation PDF File requires update #362

Open l8l opened 2 years ago

l8l commented 2 years ago

In the PDF of the hmatrix tutorial are a few things that need to be updated

  1. Matrix-Vector Product
    let m = (3><4) [1..] :: Matrix Double
    let w = 4 |> [2,0,-3,0::Double]
    m <> w

    However, on my machine, this now returns "Couldn't match expected type: Matrix Double with actual type: Vector Double In the second argument of ‘(Numeric.LinearAlgebra.<>)’, namely ‘w’"

And in the hackage docs, I found out that it should read

m #> w 
  1. Transpose In the PDF, it reads trans m but the command is now tr m.

Perhaps someone could correct that and recompile the PDF for other newcomers?