Giter VIP home page Giter VIP logo

Comments (3)

pghysels avatar pghysels commented on June 5, 2024

Hi, apologies for the late reply.

We have support for the block low-rank format, which is a non-hierarchical format, and which allows to compress only certain (admissible) blocks. For HSS, all off-diagonal blocks are always compressed.

Yes, there is a routine
void shift (scalar_t sigma)

from strumpack.

dimitargslavchev avatar dimitargslavchev commented on June 5, 2024

Hi Pieter,

Thanks for the reply.

  1. So not applicable for HSS. I could make a tree that puts the weird parts in a separate block.

  2. shift multiplies with a scalar. I need to add a vector to the diagonal.
    I.e. I have to solve several of systems of equations where the matrix only differs in the diagonals. So I want to compress it once and only do factorization and solve for each system.

I don't see such function so I will try to write it myself.

Thanks again.

from strumpack.

pghysels avatar pghysels commented on June 5, 2024

Indeed, you can do a lot by changing the tree.

Yes, the shift routine adds a scalar times the identity matrix to the HSS matrix, which might be useful for things like shift and invert eigensolvers. We did not anticipate the use case of adding a vector to the diagonal. You can look at the implementation of the shift routine.
Let me know if you need help.

Pieter

from strumpack.

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.