提交 5bd567bb authored 作者: Frederic Bastien's avatar Frederic Bastien

Added more info to what is supported on sparse matrix.

上级 df6bb755
......@@ -17,24 +17,33 @@ This documentation is also not mature.
The sparse module provides two kinds of sparse tensors are supported: CSC matrices and CSR matrices.
Operations that are implemented:
grad?
- conversion from sparse <-> dense
- theano.sparse.{dense_from_sparse,dense_from_sparse}
-
- [un]packing of sparse matrices from indexlists and nonzero elements.
- packing: theano.sparse.{CRC,CSR}
- unpacking: theano.sparse.csm_properties
- transpose
- theano.sparse.transpose
- negation
- neg
- sparse + sparse
- sparse + dense
- sparse * sparse (elemwise)
- sparse * dense
- addition/multiplication (elemwise)
- theano.sparse.{add,mul}
- sparse + sparse, sparse + dense, dense + sparse
- sparse * sparse, sparse * dense, dense * sparse
- dot(sparse, dense) with gradient defined such that sparsity pattern is
- StructuredDot
- with gradient defined such that sparsity pattern is
constant. This function is called "structured_dot"
- theano.sparse.structured_dot and its grad (structured_dot_grad)
- theano.dot call it.
- dot(sparse, dense), dot(dense, sparse), dot(sparse, sparse)
Subtensor selection (aka. square-bracket notation, aka indexing) is not implemented, but the
CSR and CSC datastructures support effecient implementations.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论