appetitto
Novice
Sep 3, 2012, 5:01 AM
Post #1 of 4
(4514 views)

How to take a solution of linear equations with PDL

Can't Post


Hi, I ve got a lot of linear equations and I would like to take a solution of it. Let's assume that we have sth like this: Ax + B = Y (line) and we know points (0,1) and (2,3). I want to account A and B, so I prepared the matrices: my $m1 = pdl [ [ 0, 1], [ 2, 1] ]; my $m2 = pdl [ [1], [3],]; Now I would like to do something like this: $res = $m1 / $m2 which do it and return solution for me. Of course '/' does not work (from Matlab) How can I take it ? Thanks in advance
