Giter VIP home page Giter VIP logo

skylinesolvers.jl's Introduction

SkylineSolvers.jl

The package structure is in flux.

Usage

The skyline matrices are currently created from the "coordinate" representation of a sparse matrix.

using SkylineSolvers, DataDrop
K = DataDrop.retrieve_matrix("K.h5")
@show size(K)
I, J, V = findnz(K)     
sky = SkylineSolvers.Ldlt2.SkylineMatrix(I, J, V, size(K, 1))

The two main operations are "factorize" and "solve":

SkylineSolvers.Ldlt2.factorize!(sky)
b = rand(size(A, 1))
x = SkylineSolvers.Ldlt2.solve(sky, b)
@test norm(A \ b - x) / norm(x) < 1e-6

At the moment, after factorization sky holds the factorized matrix, but there are no functions to extract the individual factors.

Notes

  • The package is divided into several modules.
  • The package is intended for symmetric indefinite matrices (except the Cholesky decomposition requires a positive definite matrix).
  • The modules define the type SkylineMatrix, which are mutually incompatible. In each module the matrix is stored under a skyline, and only one half of the matrix is actually stored.
  • The module Chol defines a Cholesky decomposition and triangular solve.
  • The modules Ldlt, Ldlt2, Ldlt3 define a LDLT decomposition and triangular solve each. All of these implementations are roughly equally fast.
  • The module Ldlt3 is most pleasing aesthetically: the sparse solver looks almost identical to the dense-matrix solver.
  • The module Colsol defines the original skyline solution from the textbook of KJ Bathe.
  • No renumbering is undertaken in order to minimize the number of entries stored below the skyline. If the matrix is numbered in an unfortunate way, use the package SymRCM to reorder the matrix first.
  • The solvers in this package are many times slower than the SuiteSparse Cholesky supernodal solver. However, they should be able to take as inputs arbitrary integers and floating point numbers.

skylinesolvers.jl's People

Contributors

petrkryslucsd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.