Skip to main content
13 events
when toggle format what by license comment
May 13, 2020 at 0:45 history edited J. M.'s missing motivation
edited tags
May 12, 2020 at 21:04 comment added Tugrul Temel @Daniel Lichtblau: I appreciatee your suggestions to improve the code. I will accomodate them. Thank you.
May 12, 2020 at 20:56 comment added Daniel Lichtblau Replacing the unused indices by constant arrays is a bit better. Also the inequality at the end will do nothing as written. Probably you want Max[Abs[difference]]<.000...9 Other than those issues, the thing to do is numericize, as noted in reply by @MrPuh
May 12, 2020 at 20:52 comment added Tugrul Temel @Daniel Lichtblau: (1) i and j are not used because each row has the same number and each column also has the same number. Basically, rows and columns are constants. That is why I used i and j without having them indices.
May 12, 2020 at 20:46 comment added Tugrul Temel @Daniel Lichtblau: (1) I wanted to create a matrix row by row OR column by column. That was my intention. Do I need nested tables to achieve this? (2) Do you mean using N as suggested below by Mr. Puh? Any suggestion to make this code shorter and more efficient (like yours) is what I really want. Thanks.
May 12, 2020 at 20:32 comment added Daniel Lichtblau (1) Are nested tables really needed? The first does not use the i iterator and the second does not use the j iterator. (2) Is exact arithmetic required? Machine arithmetic will be faster.
May 12, 2020 at 20:19 vote accept Tugrul Temel
May 12, 2020 at 20:18 vote accept Tugrul Temel
May 12, 2020 at 20:19
May 12, 2020 at 20:13 answer added Mr Puh timeline score: 9
May 12, 2020 at 19:59 comment added Tugrul Temel @MikeY: I edited the question with sam matrix.
May 12, 2020 at 19:58 history edited Tugrul Temel CC BY-SA 4.0
added 14179 characters in body
May 12, 2020 at 19:51 comment added MikeY sam is undefined.
May 12, 2020 at 19:48 history asked Tugrul Temel CC BY-SA 4.0