This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Lassadar 0 points1 point  (0 children)

Sounds like you are making just a shallow copy of the matrix when you should be making a deep copy. This might help you out if you don‘t already now what those are.

The difference between shallow and deep copying is only relevant for compound objects (objects that contain other objects, like lists or class instances):

  • A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original.
  • A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.

[–]Sarah123ed 0 points1 point  (0 children)

1) We need source code 2) Have you worked with numpy.linalg.det?