jax.experimental.sparse.COO#
- class jax.experimental.sparse.COO(args, *, shape, rows_sorted=False, cols_sorted=False)[source]#
JAX 中实现的实验性 COO 矩阵。
注意:此类与 JAX 转换(例如 grad 和 autodiff)的兼容性极低,并且功能非常少。通常,您应该优先选择
jax.experimental.sparse.BCOO
。此外,如果 nse 大于所表示矩阵中非零元素的真实数量,则会出现已知错误。这种情况在 BCOO 中可以更好地处理。
方法
__init__
(args, *, shape[, rows_sorted, ...])block_until_ready
()fromdense
(mat, *[, nse, index_dtype])sum
(*args, **kwargs)todense
()transpose
([axes])tree_flatten
()tree_unflatten
(aux_data, children)属性
T
dtype
ndim
nse
size
data
row
col
shape