Skip to content

Support view of 2D slices #11

@mzy2240

Description

@mzy2240
A = sprand(10,10, 0.5)
b = rand(10)
copy_b = copy(b)
ft = klu(A[1:8, 1:8]);
KLU.solve!(ft, @view b[1:8]);

The above code works. If b is a 2d vector or even whole view @view b[:,:] is used, it also works fine. However, if @view b[indexes, indexes] is passed, the following error will occur:
image

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