Skip to content

Elementary Matrix in Value::Matrix #1371

@pstaabp

Description

@pstaabp

I think there is either an error with the elementary matrix that is created with Value::Matrix->E or a discrepancy in the documentation.

The example in the POD is: Value::Matrix->E(4, [ 3, 2 ], -3); which from the documentation is that this is the elementary matrix to row 3 by -3 and add to row 2. I think the correct answer should be

1 0 0 0 
0 1 -3 0 
0 0 1 0 
0 0 0 1
```
which is the transpose of the answer shown in the documentation as well as the answer created with the code above. 

I'll put in a fix for a PR, but want to double check that I'm interpreting everything correctly. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions