POV-Ray : Newsgroups : povray.programming : numpy linalg.norm question : numpy linalg.norm question Server Time
26 Sep 2021 15:27:03 EDT (-0400)
  numpy linalg.norm question  
From: Bald Eagle
Date: 28 Oct 2019 21:50:00
Message: <web.5db79a50ca919d2f4eec112d0@news.povray.org>
I'm working on converting a python script into SDL, and I have most of the
matrix operations worked out, and just need to do a few more things before I can
start debugging (because you KNOW it never works the first time.)

I wrote a Norm (_Array) macro to take each element of a 2D array, square it, and
sum all the squares, then take the square root of that sum.

I now have this in front of me:
#local err = np.linalg.norm(new_u - U);

Do I make a new array that has each element equaling _A[i][j]-_B[i][j] and then
take the norm of that?

Just checking with anyone running python and familiar enough to give a quick
confirmation one way or the other.

Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.