# Sparce Matrix Ruby

**URL:** <https://www.ruby-forum.com/t/sparce-matrix-ruby/178169>\
**Category:** Ruby\
**Created:** [October 30, 2009, 4:27am UTC](https://www.ruby-forum.com/t/sparce-matrix-ruby/178169 "2009-10-30T04:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gimmickivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9dc877/32.png) [@gimmickivek](https://www.ruby-forum.com/u/gimmickivek)\
**Post date:** [October 30, 2009, 4:27am UTC](https://www.ruby-forum.com/t/sparce-matrix-ruby/178169/1 "2009-10-30T04:27:44Z")

</div>

Is there a class for sparce matrices in ruby? I read a couple of posts  
on using “hash” to create sparce matrices. Just wanted to know if one  
exists…

I am trying to multiply 2 square matrices of higher order(\>10000). I am  
using narray for performance. Is there any better gem available?

---

<div class="post-metadata">

**Author:** ![gimmickivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9dc877/32.png) [@gimmickivek](https://www.ruby-forum.com/u/gimmickivek)\
**Post date:** [October 30, 2009, 4:44am UTC](https://www.ruby-forum.com/t/sparce-matrix-ruby/178169/2 "2009-10-30T04:44:07Z")

</div>

Gim I. wrote:

> Is there a class for sparse matrices in ruby? I read a couple of posts  
> on using “hash” to create sparce matrices. Just wanted to know if one  
> exists…
> 
> I am trying to multiply 2 square matrices of higher order(\>10000). I am  
> using narray for performance. Is there any better gem available?
