We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1771316 commit b1103b2Copy full SHA for b1103b2
src/options.jl
@@ -141,6 +141,11 @@ const BYCOL = LibGraphBLAS.GxB_BY_COL
141
142
#only translate if it's a symbol
143
option_toconst(option) = option
144
+function option_toconst(option::StorageOrders.StorageOrder)
145
+ option === StorageOrders.ColMajor() && (return BYCOL)
146
+ option === StorageOrders.RowMajor() && (return BYROW)
147
+ throw(ArgumentError("Invalid Orientation setting $option"))
148
+end
149
function option_toconst(sym::Symbol)
150
sym === :format && return FORMAT
151
sym === :nthreads && return NTHREADS
0 commit comments