Ask Your Question
0

Kernel died when computing large matrix

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

anonymous user

Anonymous

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
1

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

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

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

Stats

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

Seen: 193 times

Last updated: Dec 30 '20