Timeline for Determinant of 11x11 Matrix consumes immense amount of memory
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2020 at 0:46 | answer | added | Zonova | timeline score: 2 | |
Jun 2, 2020 at 18:21 | comment | added | MarcoB | @Zach Glad it helped! You could write a self-answer to your question to explain what you did. It would be useful to future visitors of the site to see exactly what you implemented! Comments are never a safe place to store information, and self-answers are encouraged here! | |
Jun 2, 2020 at 17:32 | comment | added | Zonova | I ended up doing what @MarcoB suggested and it dramatically decreased the computation time and memory usage! Thank you very much! | |
Jun 1, 2020 at 15:23 | comment | added | Daniel Lichtblau |
What @MarcoB suggested is the right way to go about this, for more than one reason. As for 11x11, that is the upper end for which cofactor expansion is used. You can try to fool Det by adding a last row and column with just a 1 in the (12,12) position and zeros elsewhere. But this might get bogged down for other reasons, because this type of computation is notorious for intermediate (and sometimes final) swell. (Basically: small input can give rise to huge output.)
|
|
Jun 1, 2020 at 13:54 | comment | added | Zonova | @KraZug I've edited the main post! And MarcoB I will try that and update with the results! | |
Jun 1, 2020 at 13:53 | history | edited | Zonova | CC BY-SA 4.0 |
added 1667 characters in body
|
Jun 1, 2020 at 5:12 | comment | added | MarcoB |
Define a function that calculates your determinant only after injection of numerical values. For instance imagine you have a matrix m containing symbols a and b . You could write: detm[aval_?NumericQ, bval_?NumericQ] := Det[m /. {a -> aval, b -> bval}] . This will only execute if the arguments are numbers, then inject those numbers into your matrix before calculating the determinant numerically. You could also use Det[N[m /. {a -> ...}]] to make sure that your matrix is at machine precision.
|
|
Jun 1, 2020 at 5:12 | comment | added | SPPearce |
Can you give the code you are using FindMinimum in.
|
|
Jun 1, 2020 at 5:08 | history | edited | A little mouse on the pampas | CC BY-SA 4.0 |
deleted 70 characters in body
|
Jun 1, 2020 at 4:42 | comment | added | Zonova | Perhaps most simply, I am trying to run FindMinimum on a determinant of a matrix. I would like FindMinimum to plug in the coordinates before mathematica takes the determinant, as it seems taking the determinant symbolically is very costly. | |
Jun 1, 2020 at 4:17 | history | edited | J. M.'s missing motivation♦ |
edited tags
|
|
Jun 1, 2020 at 3:57 | review | First posts | |||
Jun 1, 2020 at 4:13 | |||||
Jun 1, 2020 at 3:56 | history | asked | Zonova | CC BY-SA 4.0 |