Skip to content

Conversion from vector to matrix through Matrix constructor #357

Open
@deltakam

Description

@deltakam

The following should be implemented:

Matrix([1;1])  # Now 2 by 1 matrix

since that is a very explicit and readable way of the conversion.

Context: The issue was raised under JuliaLang/julia#9208 where a recommended solution was to convert a vector [2.0] to a matrix using [2.0]''. I think Matrix([2.0]) is more readable and accessible to newbies than [2.0]''.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions