GithubHelp home page GithubHelp logo

Comments (3)

rayegun avatar rayegun commented on July 23, 2024

So the current design of SparseArrays.jl makes this difficult. The easiest solution is to use CIndices.jl as your index vectors. This means when you unsafe_wrap you should do so with element type CIndex{Int64}. Reinterpreting is expensive so try to avoid that.

The implementation of CIndices is incomplete, it probably needs extensions added for the solvers in SparseArrays.jl, and potentially other libraries. This might be necessary to add to the python interop libraries as well as an optional conversion.

Performance without reinterpreting should be pretty good, with reinterpret it will be pretty bad.

from sparsearrays.jl.

orenbenkiki avatar orenbenkiki commented on July 23, 2024

Thanks for the pointer to CIndices.jl - can you say something in what sense it is incomplete? That is, what operations you expect may fail when using it?

from sparsearrays.jl.

rayegun avatar rayegun commented on July 23, 2024

I don't have any specifics now. I just assume there are some missing operations because it was built piecemeal for this purpose. It is also possible there are functions (like solvers) that convert to Int64 and Int32 that need to be overloaded somehow. KLU.jl should support it now (although I'm not sure if I've tagged the release), I will continue working on the others.

from sparsearrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.