Git Product home page Git Product logo

matrix-converer's Introduction

npy-converter

  • Matrix Data Converter.
  • Expand matrix for multi-thread, multi-process
  • Divid matrix for multi-thread, multi-process

Support: .mtx, .npy, .npz

Requirement

  • scipy
  • numpy

Usage

Converter

  • .npy -> .npz
python3 npy2npz.py example/matrix.npy bsr|csr|coo|dia|dok|lil
  • .npz -> .mtx
python3 npz2mtx.py example/matrix.npz
  • .mtx -> .npz
python3 mtx2npz.py example/matrix.mtx bsr|csr|coo|dia|dok|lil
  • .npz -> .npy
python3 npz2npy.py example/matrix.npz

Expander

  • .npy: (56, 56) -> (64, 64))
python3 expandnpy.py example/matrix.npy 16
  • .npz: (56, 56) -> (64, 64))
python3 expandnpz.py example/matrix.npz bsr|csr|coo|dia|dok|lil 16

Diveder

  • .npy: (56, 56) -> 4*(16, 64))
python3 divnpy2n.py example/matrix.16.npy 4
  • .npz: (56, 56) -> 4*(16, 64))
python3 divnpz2n.py example/matrix.16.npz 4 

License

MIT license

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.