Skip to content

How to do simple math operations on matrices?  #4

@tastyminerals

Description

@tastyminerals

Ok, this is trivial and yet it is somehow missed from the docs it seems.

local alg = require "sci.alg"
A = alg.tomat({2,3,0},{1,1,-1})
B = A - 1

And I am getting attempt to perform arithmetic on 'struct 1526' and 'number'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions