dabroz / mruby-matrix

Matrix and vector library for mruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mruby-matrix travis status

Matrix and vector library ported from MRI Ruby.

Installation

Add

  conf.gem github: 'dabroz/mruby-matrix'

to your build_config.rb.

Differences from MRI matrix library

Coercion

mruby does not currently implement numeric coercion (see mruby/mruby#1198), so the following difference is in play:

# does NOT work
2 * Vector[1,2]

# do this instead
Vector[1,2] * 2

No Decomposition

This library does not (yet) implement either Eigenvalue or LUP Decomposition.

Exception Messaging

There are also slight differences in exception messaging. Typically, the messages in this library are (unfortunately) less informative than in MRI.

License

See LICENSE file

About

Matrix and vector library for mruby

License:Other


Languages

Language:Ruby 100.0%