Skip to content

Support for 0d ndarrays #9

Open
@antimatter15

Description

@antimatter15

This doesn't seem to work with 0d ndarrays:

var a = ndarray(new Float32Array(128*128))
ops.addseq(a.pick(0), 2)

Throws "SyntaxError: Unexpected token |="

It looks like cwise-compiler (maybe this is a bug which should be filed there instead) is assembling some code which includes a var statement with no argument (i.e. "var \n a |= 0").

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