permanent of square matrix
|
01-02-2024, 10:41 PM
(This post was last modified: 01-02-2024 11:22 PM by Albert Chan.)
Post: #1
|
|||
|
|||
permanent of square matrix
Computation of the permanent of a matrix #7151
0-based numpy npperm(M) translated to 1-based HP Prime cas code Code: #cas Code does not generate sub-matrixes, very efficient! > m := ranm(9,9) Code: [[ 86, -97, -82, 7, -27, 26, -89, 63, -49], > permanent(m) /* time = 0.008 sec */ −3500631868051794540 Lets try naive implementation > per(m) /* time = 95.68 sec */ −3500631868051794540 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)