Commit 442c63a
committed
Add GraphBLAS operations, iterators, and option accessors to functional API
Operations (matrix.py / vector.py):
- mxm, mxv, vxm, transpose, kronecker
- eWiseAdd, eWiseMult, eWiseUnion
- apply, apply_first, apply_second, select
- reduce (to vector and scalar), vector reduce
- assign, assign_scalar, extract, col_extract, row/col_assign
- build and extractTuples for all 13 element types
- concat, diag (matrix), diag (vector)
- dup, clear, wait, print, fprint
Scalar operations (scalar.py):
- dup, clear, wait, print, fprint
Iterator module (new file iterator.py):
- iterator_new / iterator_free
- matrix entry, row, column, and vector iterator attach/seek/next
- Row/column index getters, kount, getp/getpmax
- Type-specific value getters for all 13 types
- Column iterators require GxB_BY_COL matrix format
Global and per-object option accessors (__init__.py, matrix.py, vector.py):
- global_option_get/set for INT32, FP64, CHAR
- matrix_option_get/set for INT32, FP64
- vector_option_get/set for INT32, FP64
All 1046 doctests pass. 9 pytest tests pass.1 parent 5989360 commit 442c63a
6 files changed
Lines changed: 3136 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
111 | 191 | | |
112 | 192 | | |
113 | 193 | | |
| |||
0 commit comments