Giter Club home page Giter Club logo

numo-sparse's Introduction

Numo::Sparse

Welcome to your new gem! Numo-sparse is a sparse tensor library that will allow the user to create sparse matrices to improve data structure and funcionality in ruby.

In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/numo/sparse. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Status of Build

Build Status

GitHub issues

GitHub license

Installation

Add this line to your application's Gemfile:

gem 'numo-sparse'

And then execute:

$ bundle

Or install it yourself as:

$ gem install numo-sparse

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mrkn/numo-sparse.

License

The gem is available as open source under the terms of the MIT License.

numo-sparse's People

Contributors

david81982 avatar mrkn avatar

Stargazers

 avatar himkt avatar

Watchers

 avatar june29 avatar James Cloos avatar Benson Muite avatar  avatar

Forkers

david81982 bkmgit

numo-sparse's Issues

TODO list for Numo::Sparse::COO

We want to make Numo::Sparse::COO a Ruby version of scipy.sparse.coo_matrix and sparse.COO in Python.

We have to cover all the features of scipy.sparse.coo_matrix and sparse.COO in Numo::Sparse::COO.

TODOs:

  • Create COO tensor from Numo::NArray tensor.
  • arcsin
  • arcsinh
  • arctan
  • arctanh
  • argmax
  • argmin
  • asformat (TODO: need to rename to more Ruby-ish name)
  • asfptype (TODO: need red-float support)
  • astype (TODO: need to rename to more Ruby-ish name)
  • ceil
  • conjugate
  • dup (copy in SciPy)
  • count_nonzero
  • deg2rad
  • diagonal
  • dot
  • eliminate_zeros
  • expm1
  • floor
  • getH (TODO: more beter name)
  • shape
  • getcol (TODO: more better name)
  • getmaxprint (TODO: maybe unnecessary)
  • getrow (TODO: more better name)
  • log1p
  • max
  • maximum
  • min
  • minimum
  • multiply
  • nonzero
  • power
  • rad2deg
  • reshape
  • resize
  • rint
  • set_shape (TODO: more better name)
  • setdiag (TODO: more better name)
  • sign
  • sin
  • sinh
  • sqrt
  • sum
  • sum_duplicates
  • tan
  • tanh
  • to_narray (toarray in SciPy)
  • to_bsr (tobsr in SciPy; need to implement BSR format support)
  • to_csr (tocsr in SciPy; need to implement CSR format support)
  • to_csc (tocsc in SciPy; need to implement CSC format support)
  • to_dense (alias to to_narray)
  • to_dia (todia in SciPy; need to implement DIA format support)
  • to_dok (todok in SciPy; need to implement DOK format support)
  • to_lil (tolil in SciPy; need to implement LIL format support)
  • transpose
  • T (alias to transpose)
  • trunc

References:

Implement Numo::Sparse::CSC class

CSC sparse matrix can be seen as a transpose of CSR sparse matrix.
We can extract the common structure of CSR and CSC as a class, and make CSR and CSC as subclasses of the common class.

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.