Skip to content

[Lab 1 Part 1.1] A typo in the matrix indexes? #111

@datasith

Description

@datasith

The last matrix defined by the user in section 1.1 has to be a 2-d Tensor. Thus, it'll have a shape of (n, 2) or (2, n). The code in the Lab 1 notebook has:

row_vector = matrix[1]
column_vector = matrix[:,2]
scalar = matrix[1, 2]

This assumes the column-rank to be >=3. IMHO, it should instead be:

row_vector = matrix[1]
column_vector = matrix[:,1]
scalar = matrix[0, 1]

And assume the user will choose a (2,2) matrix as their solution.

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