-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Hi, I am wondering if a matrix vector product will be implemented, currently using matrix matrix product is slow:
using Octavian
using BenchmarkTools
using LinearAlgebra
n = 100
a = rand(n, n)
b = rand(n, 1)
c = zeros(n, 1)
@btime matmul!(c, a, b) # 772.634 ns (0 allocations: 0 bytes)
@btime mul!(c, a, b) # 4.341 μs (0 allocations: 0 bytes)
julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i9-10920X CPU @ 3.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, cascadelake)
Environment:
JULIA_EDITOR = "/home/pshi/.vscode-server/bin/cfa2e218100323074ac1948c885448fdf4de2a7f/node"
JULIA_NUM_THREADS = 12
Thank you for such amazing package!
DilumAluthge
Metadata
Metadata
Assignees
Labels
No labels