Skip to content

Add support for band #21

Open
Open
@dlfivefifty

Description

@dlfivefifty

The following that works for a BandedMatrix and should also work with a ToeplitzMatrix:

A[band(1)] # get the first super-diagonal as a vector
A[band(-1)] = 2  # set all entries on the first sub-diagonal to 2

This is accomplished by band returning a type Band. Maybe Band could be moved into another package that both ToeplitzMatrices.jl and BandedMatrices.jl depend on? (MatrixBands.jl?)

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