GithubHelp home page GithubHelp logo

wamuir / matrix-market Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 89 KB

Go package to read and write sparse and dense matrices in the NIST MatrixMarket file format

Home Page: https://pkg.go.dev/github.com/wamuir/matrix-market

License: MIT License

Go 100.00%
sparse-matrices dense-matrices matrix-market nist go matrix

matrix-market's Introduction

matrix-market

Project Stability: Experimental Go Reference Build Status codecov Go Report Card

Installation

  go get -u github.com/wamuir/matrix-market

Usage

  var m market.COO

  file, err := os.Open("sparse.mtx")
  if err != nil {
      log.Fatal(err)
  }
  defer file.Close()

  _, err := m.UnmarshalTextFrom(file)
  if err != nil {
      log.Fatal(err)
  }

  var c *sparse.COO = m.ToCOO()  // github.com/james-bowman/sparse

Supported Formats

Sparse Matrices (Coordinate Format)

Sparse Real-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Coordinate Real General market.COO sparse.COO
Matrix Coordinate Real Skew-Symmetric market.COO sparse.COO
Matrix Coordinate Real Symmetric market.COO sparse.COO

Sparse Integer-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Coordinate Integer General market.COO sparse.COO
Matrix Coordinate Integer Skew-Symmetric market.COO sparse.COO
Matrix Coordinate Integer Symmetric market.COO sparse.COO

Sparse Complex-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Coordinate Complex General market.CDense mat.CDense
Matrix Coordinate Complex Hermitian market.CDense mat.CDense
Matrix Coordinate Complex Skew-Symmetric market.CDense mat.CDense
Matrix Coordinate Complex Symmetric market.CDense mat.CDense

Sparse Pattern Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Coordinate Pattern General market.COO sparse.COO
Matrix Coordinate Pattern Symmetric market.COO sparse.COO

Dense Matrices (Array Format)

Dense Real-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Array Real General market.Dense mat.Dense
Matrix Array Real Skew-Symmetric market.Dense mat.Dense
Matrix Array Real Symmetric market.Dense mat.Dense

Dense Integer-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Array Integer General market.Dense mat.Dense
Matrix Array Integer Skew-Symmetric market.Dense mat.Dense
Matrix Array Integer Symmetric market.Dense mat.Dense

Dense Complex-Valued Matrices

Object Format Field Symmetry Concrete Type Storage
Matrix Array Complex General market.CDense mat.CDense
Matrix Array Complex Hermitian market.CDense mat.CDense
Matrix Array Complex Skew-Symmetric market.CDense mat.CDense
Matrix Array Complex Symmetric market.CDense mat.CDense

matrix-market's People

Contributors

dependabot[bot] avatar wamuir avatar

Stargazers

 avatar

Watchers

 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.