Skip to content

Element map (emap) on matrix returns LazySeq #42

@mars0i

Description

@mars0i

Applying emap to a clatrix.core.Matrix returns a LazySeq, rather than returning something that preserves the matrix's shape.

(def M (matrix [[1 2][3 4]]))
#'user/M

M
 A 2x2 matrix
 -------------
 1.00e+00  2.00e+00 
 3.00e+00  4.00e+00 

(def Mi (emap inc M))
#'user/Mi

Mi
(2.0 3.0 4.0 5.0)

(type Mi)
clojure.lang.LazySeq

Maybe this is related to issue 36?

(Feel free to let me know if I'm not doing something correctly here. First issue not for my own project.)

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