willow-ahrens / finch-tensor

Sparse Tensors in Python and more! Datastructure-Driven Array Programming Language
MIT License
8 stars 3 forks source link

MAINT: Refine order support #75

Closed mtsokol closed 3 months ago

mtsokol commented 3 months ago

Hi @willow-ahrens @hameerabbasi,

This PR refines order support, by allowing finch.asarray(any_input, format=any_format) regardless of any_input order.

Right now it's accomplished by calling copyto! and then dropfills which I think performs copy twice. Could it be achieved with a one function call? (or performing one copy)