Skip to content

Compiler tries to multiply two matrices as if they were vectors #1080

@BitPuffin

Description

@BitPuffin

https://gist.github.com/BitPuffin/10470877

The error happens when the compiler reaches https://gist.github.com/BitPuffin/10470877#file-matrix-nim-L383

Even though those procs return matrices the error I get:
vector.nim(7, 42) Error: ordinal type expected
suggests that it is treating them as vectors when clearly they are not.

So what I think is that it is mistaking matrix * with vector *, now the other interesting thing is, I noticed that I had when false'd *out, even when I added a dummy multiply proc (https://gist.github.com/BitPuffin/10470877#file-matrix-nim-L131) it STILL matched to the vector component by component *. So it wasn't like I initially thought, that it matched to it because there was no * for matrices.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions