Skip to content

terrencekhng/nmatrix-gemv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmatrix-gemv

How to install

bundle install

bundle exec rake compile

gem build nmatrix-gemv.gemspec

gem install ./nmatrix-gemv-0.0.2.gem

How to use

irb
>require 'nmatrix-gemv'
=> true

In file:

Suppose you have NMatrix installed.

require 'nmatrix'
require 'nmatrix-gemv'

a = NMatrix.new([4,3], [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0], dtype: :float64)
x = NMatrix.new([3,1], [2.0, 1.0, 0.0], dtype: :float64)

NMatrix::BLAS.gemv(a, x)

About

function gemv interface for NMatrix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published