This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Test | |
module SparseXX | |
const VE = Base.VecElement | |
struct Vec{N,T} | |
elts::NTuple{N,T} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.ipynb |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function simplemul!((β₁, Y, β₂), α₁, A, α₂, B, α₃) | |
@assert size(Y, 1) == size(A, 1) | |
@assert size(Y, 2) == size(B, 2) | |
@assert size(A, 2) == size(B, 1) | |
@inbounds for i in 1:size(A, 1), j = 1:size(B, 2) | |
acc = zero(α₁ * A[i, 1] * α₂ * B[1, j] * α₃ + | |
α₁ * A[i, 1] * α₂ * B[1, j] * α₃) | |
for k = 1:size(A, 2) | |
acc += A[i, k] * α₂ * B[k, j] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SparseDots | |
import SparseArrays | |
using Random | |
using SIMD | |
struct SpVect{TVi,TVv} | |
n::Int | |
nzind::TVi | |
nzval::TVv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SparseArrays | |
using MappedArrays | |
using MappedArrays: testvalue | |
struct ReadonlyMappedSparseMatrixCSC{Tv, Ti, | |
A <: AbstractSparseMatrix{Tv, Ti}, | |
F, | |
} <: AbstractMappedArray{Tv, 2} | |
# } <: AbstractSparseMatrix{Tv, Ti} | |
f::F |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"Julia":"1.1.0-DEV.680","BenchmarkTools":"0.2.2"},[["BenchmarkGroup",{"data":{"linalg":["BenchmarkGroup",{"data":{"factorization":["BenchmarkGroup",{"data":{"(\"eigen\", \"LinearAlgebra.Diagonal\", 1024)":["BenchmarkTools.Trial",{"allocs":3,"gctimes":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: run | |
export JULIA_PROJECT = $(PWD) | |
JULIA = julia | |
JULIAC_PATH = $(shell $(JULIA) --startup-file=no -E 'normpath(Base.find_package("PackageCompiler"), "..", "..", "juliac.jl")') | |
RUN_JULIAC = $(JULIA) $(JULIAC_PATH) | |
run: builddir/test.so | |
python test.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/builddir |