Skip to content

print_matrix is broken for SubArrays #3697

Closed
@stevengj

Description

Running a = [1,2,3,4]; b = sub(a, 1:2) in the repl gives

2-element SubArray of 4-element Int64 Array:
 #undef
 #undef

The culprit seems to be somewhere in print_matrix (since print_matrix(STDOUT, b) gives the two #undefs).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions