Ask Your Question

Kernel died when computing large matrix

asked 2020-12-30 02:18:22 +0200

anonymous user


I have the following

m=5; n=3
A = matrix(QQ, (m^n)^2+1, (m^m)^2)
A[0, :] = ones_matrix(1, (m^m)^2)
for i in [1..(m^n)^2]: A[i,(m^(2*(m-n)))*(i-1):(m^(2*(m-n)))*i] = ones_matrix(1, m^(2*(m-n)))    
E = A.right_kernel()

And I get the message: the kernel died... Any suggestion to big matrices?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-30 08:55:58 +0200

Emmanuel Charpentier gravatar image
sage: m=5;n=3
sage: ((m^n)^2+1)*((m^m)^2)
sage: (((m^n)^2+1)*((m^m)^2)).log(10).n()

You are trying to allocate a matrix of 152 billions rationals (and some change...). Do you have enough memory for that ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-12-30 02:18:22 +0200

Seen: 59 times

Last updated: Dec 30 '20