Post Reply 
Some of Python's linalg commands in HP Prime
10-27-2022, 07:43 PM (This post was last modified: 10-27-2022 07:55 PM by Ioncubekh.)
Post: #11
RE: Some of Python's linalg commands in HP Prime
matrix() doesn't follow rules of matrix dot product. Possible bug related to post#7

Code:
from linalg import *
M1= matrix([ [1,2,3], [10,100,1000] ])

# Sum of rows of any Matrix
EachRowSum= dot( M1, ones( len(M1[0]), 1 ) )

# Sum of columns of any Matrix ... NOT WORKING
EachColSum= dot( ones( 1, len(M1) ), M1 )

HP Prime G1
Python via Android Termux...
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 - Ioncubekh - 10-27-2022 07:43 PM



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