Post Reply 
Some of Python's linalg commands in HP Prime
09-11-2021, 09:13 AM
Post: #8
RE: Some of Python's linalg commands in HP Prime
(09-10-2021 04:55 AM)parisse Wrote:  There is indeed a bug in transpose for non square matrices.

Thanks for the answer, Parisse. Since I had to use the "transpose" command in my Python program, I had to write a subroutine to transpose the arrays:

Code:

from linalg import *

def transposeRr(matriceRr):
    L=shape(matriceRr);
    r=L[0];
    c=L[1];
    matricezero=zeros(c,r);
    for u in range(0,r):
        for uu in range (0,c):
            matricezero[uu][u]=matriceRr[u][uu];
    return matricezero;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Some of Python's linalg commands in HP Prime - robmio - 09-11-2021 09:13 AM



User(s) browsing this thread: 2 Guest(s)