RPL mini-challenge: Create an anti-Identity Matrix
|
05-13-2018, 09:51 AM
(This post was last modified: 05-13-2018 10:13 AM by pier4r.)
Post: #19
|
|||
|
|||
RE: RPL mini-challenge: Create an anti-Identity Matrix
Playing around, not yet done. The problem is the construction. The matrix routines are blazing fast but then editing them is a pain (subtraction for example). So better to construct them right directly.
Still fixed values (adapting with variables shouldn't be that hard but will cost some additional time). Edit: oh this idea is very similar to the one from Claudio already. Code:
The code from claudio (post http://www.hpmuseum.org/forum/thread-107...l#pid97587) here is pretty fast. It is like mine, only he is better, he is creating all the 900 elements on the stack (I create 30 elements each time) and then using the array command to compact them in a matrix. Neat. I did not know! The part that I never like is that without comments one has to debug the code to understand what the code is doing. And that shouldn't happen. Code:
Code:
Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 13 Guest(s)