Skip to content

Commit 8cb1d82

Browse files
author
Will Kimmerer
authored
Fix Mask (#91)
* fix masking op to use replace * really gross method of solving cfunction error? Will likely remove with more sleep * try functionwrappers * use celrod trick * begin adding other unpack types * begin adding other unpack types * transfer wip to antarctic * WIP fill generalization, container type generalization * passing tests locally * fix type infer error * reorg, fix #84 * add some tests, fix binaryops between valid_union and UDTs * missing qualifiers * fix typo * similar->oftype * refix typo
1 parent bbfa3dc commit 8cb1d82

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1874
-1010
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SuiteSparseGraphBLAS"
22
uuid = "c2e53296-7b14-11e9-1210-bddfa8111e1d"
33
authors = ["Will Kimmerer <[email protected]", "Abhinav Mehndiratta <[email protected]>"]
4-
version = "0.8"
4+
version = "0.8.0"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -17,14 +17,14 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1717
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1818
StorageOrders = "e9177fbf-8fde-426c-9425-4eed0f22262a"
1919
SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
20+
Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
2021

2122
[compat]
2223
ChainRulesCore = "1"
24+
KLU = "0.4"
2325
MacroTools = "0.5"
2426
Preferences = "1"
2527
SSGraphBLAS_jll = "7.2"
2628
SpecialFunctions = "2"
2729
StorageOrders = "0.2"
2830
julia = "1.7"
29-
KLU = "0.4"
30-

docs/src/arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
There are two primary array types in SuiteSparseGraphBLAS.jl: [`GBVector`](@ref) and [`GBMatrix`](@ref), as well as a few specialized versions of those array types. The full type hierarchy is:
44

55
```
6-
AbstractGBArray{T, N, F} <: AbstractSparseArray{T, N}
6+
AbstractGBArray{T, F, N} <: AbstractSparseArray{Union{T, F}, N}
77
├ N = 2 ─ AbstractGBMatrix{T, F}
88
│ ├─ GBMatrix{T, F}
99
│ └─ OrientedGBMatrix{T, F, O}

src/SuiteSparseGraphBLAS.jl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ using SparseArrays
1818
using SparseArrays: nonzeroinds, getcolptr, getrowval, getnzval
1919
using MacroTools
2020
using LinearAlgebra
21+
using LinearAlgebra: copy_oftype
2122
using Random: randsubseq, default_rng, AbstractRNG, GLOBAL_RNG
2223
using SpecialFunctions: lgamma, gamma, erf, erfc
2324
using Base.Broadcast
@@ -58,9 +59,15 @@ include("indexutils.jl")
5859
#
5960
include("operations/extract.jl")
6061
include("scalar.jl")
61-
include("vector.jl")
62-
include("matrix.jl")
62+
include("gbvector.jl")
63+
include("gbmatrix.jl")
6364
include("abstractgbarray.jl")
65+
66+
# EXPERIMENTAL array types:
67+
include("shallowtypes.jl")
68+
include("oriented.jl")
69+
70+
include("convert.jl")
6471
include("random.jl")
6572
# Miscellaneous Operations
6673
include("print.jl")
@@ -96,19 +103,17 @@ include("serialization.jl")
96103
include("misc.jl")
97104
include("mmread.jl")
98105
# include("iterator.jl")
99-
include("oriented.jl")
100106
include("solvers/klu.jl")
101107
include("solvers/umfpack.jl")
102-
include("shallowtypes.jl")
103108

104109
export SparseArrayCompat
105110
export LibGraphBLAS
106111
# export UnaryOps, BinaryOps, Monoids, Semirings #Submodules
107112
export unaryop, binaryop, Monoid, semiring #UDFs
108113
export Descriptor #Types
109-
export gbset, gbget # global and object specific options.
114+
export gbset, gbget, getfill, setfill # global and object specific options.
110115
# export xtype, ytype, ztype #Determine input/output types of operators
111-
export GBScalar, GBVector, GBMatrix #arrays
116+
export GBScalar, GBVector, GBMatrix, GBMatrixC, GBMatrixR #arrays
112117
export lgamma, gamma, erf, erfc #reexport of SpecialFunctions.
113118

114119
# Function arguments not found elsewhere in Julia

0 commit comments

Comments
 (0)