Sha256: a3b41740be4c64aa05adc0194286b46533a08a057c05d0f356acec8f5234fa63

Contents?: true

Size: 242 Bytes

Versions: 22

Compression:

Stored size: 242 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
include GSL::Blas

a = GSL::Matrix.alloc([1, 5], [4, 6])
b = GSL::Matrix.alloc([10, 2], [3, 8])
c = GSL::Matrix.alloc(2, 2)

p GSL::Blas.dgemm(NoTrans, NoTrans, 1, a, b, 1, c)
p GSL::Blas.dgemm(a, b)
p a*b

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
gsl-2.1.0.3 examples/blas/level3.rb
gsl-2.1.0.2 examples/blas/level3.rb
gsl-2.1.0.1 examples/blas/level3.rb
gsl-2.1.0 examples/blas/level3.rb
gsl-1.16.0.6 examples/blas/level3.rb
rb-gsl-1.16.0.5 examples/blas/level3.rb
rb-gsl-1.16.0.4 examples/blas/level3.rb
rb-gsl-1.16.0.3 examples/blas/level3.rb
rb-gsl-1.16.0.3.rc1 examples/blas/level3.rb
gsl-nmatrix-1.15.3.2 examples/blas/level3.rb
gsl-nmatrix-1.15.3.1 examples/blas/level3.rb
rb-gsl-1.16.0.2 examples/blas/level3.rb
rb-gsl-1.16.0.1 examples/blas/level3.rb
rb-gsl-1.16.0 examples/blas/level3.rb
rb-gsl-1.15.3.2 examples/blas/level3.rb
rb-gsl-1.15.3.1 examples/blas/level3.rb
blackwinter-gsl-1.15.3.2 examples/blas/level3.rb
gsl-nmatrix-1.15.3.0 examples/blas/level3.rb
gsl-1.15.3 examples/blas/level3.rb
gsl-1.14.7 examples/blas/level3.rb