I've been here before but I'm looking to find a single-pass method to input the LRS `[[0,0,0],[0,0,0],[1,1,1]]`

and get a basic 3x4 (at least) matrix in return:

```
[
[1,0,0,0],
[0,1,0,0],
[0,0,1,0]
]
```

^ matrix is NOT transposed (I'll never understand why we use column-major)

anyone got anything on this??

I've been here before

trust me, you don't want to see my current code. :P

also, please don't provide math references such as wikipedia...

I can read programming, not math.

meaning I can read `v = sqrt( x )`

, not:*insert math algorithm here*