~/talk

Speeding up NMatrix by 100x

Talkat RubyConf 2019 · 2019-11-18..11-20· [ruby]
links:none on file
slides:none on file

NMatrix gets a ground-up reimplementation renamed NumRuby that claims a 100x speedup claim over the old mixed C/C++/Ruby codebase by cutting copies and using a clean C backend via the Ruby C extensions and LAPACK/BLAS wrappers. Benchmarks show parity with Numo NArray on elementwise ops and faster QR factorization (7s vs 14.7s on ~5M elements). A companion Ruby-Sparse implements COO CSR CSC and diagonal formats with conversions to NMatrix and NArray and initial graph and sparse linear‑algebra work.

AI-written summary · about

  1. 0:00Intro
  2. 0:21About me
  3. 1:59Rubyplot
  4. 2:37NMatrix benchmarks
  5. 4:14How NumRuby is the solution
  6. 4:45Matrix addition
  7. 5:00Matrix subtraction
  8. 5:16Determinant
  9. 5:29Factorization
  10. 6:52nmatrix struct
  11. 7:51Elementwise operations
  12. 9:25Stride calculation example
  13. 10:37Broadcasting example
  14. 11:43Linear Algebra
  15. 13:05A simple example usage
  16. 15:11Sparse matrices
  17. 16:53Usage example of Ruby-Sparse
  18. 18:18NMatrix conversion
  19. 19:05Numo-NArray conversion
  20. 19:59Graph module • Implements graph algorithm with graph stored in a sparse
  21. 21:29Future work
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.