Skip to content

feature: support slicing for IntegerMatrix #265

Description

@alxiong

Currently, you cannot use the common slicing to access (read/write) rows/cols of IntegerMatrix, this issue aims to add support for it.

namely:

from fpylll import IntegerMatrix
A = IntegerMatrix.random(10, "uniform", bits=8)
B = IntegerMatrix.random(5, "uniform", bits=8)

C = A[:5] # this will fail
A[5:, 5:] = B # this will also fail

additionally, since IntegerMatrixRow didn't implement __setitem__, we can't even A[2]=B[2], we should also add that in this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions