-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationserviceFixing this counts towards service requirementsFixing this counts towards service requirements
Description
MWE:
julia> A = [false true; true false]
2×2 Matrix{Bool}:
0 1
1 0
julia> using Finch
julia> Tensor(CSFFormat(2, false, Bool), A)
2×2 Tensor{DenseLevel{Int64, SparseListLevel{Int64, Vector{Int64}, Vector{Int64}, ElementLevel{false, Bool, Int64, Vector{Bool}}}}}:
0 1
1 0
julia> Tensor(CSFFormat(2, false), A)
2×2 Tensor{DenseLevel{Int64, SparseListLevel{Int64, Vector{Int64}, Vector{Int64}, ElementLevel{false, Float64, Int64, Vector{Float64}}}}}:
false true
true falseBased on the docs https://finch-tensor.github.io/Finch.jl/dev/docs/tensor_formats/#Finch.CSFFormat which says that the format signature is CSFFormat(N, z = 0.0, T = typeof(z)), both tensors should be the same but instead
julia> typeof(Tensor(CSFFormat(2, false, Bool), A)) == typeof(Tensor(CSFFormat(2, false), A))
falseReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationserviceFixing this counts towards service requirementsFixing this counts towards service requirements