Convert to sparse
- 主要言語
- Julia
- スター
- 1.5k
- フォーク
- 186
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Is there a way to convert a PyObject containing a sparse matrix to a Julia sparse Matrix type ?
``` julia
@pyimport scipy.sparse as sp
Id = sp.eye(4)
Idj = convert(SparseMatrixCSC{Float64,Int64},Id)
ERROR: MethodError: `convert` has no method matching convert(::Type{SparseMatrixCSC{Float64,Int64}}, ::PyCall.PyObject)
This may have arisen from a call to the constructor SparseMatrixCSC{Float64,Int64}(...),
since type constructors fall back to convert methods.
Closest candidates are:
call{T}(::Type{T}, ::Any)
convert{Tv,Ti,TvS,TiS}(::Type{SparseMatrixCSC{Tv,Ti}}, ::SparseMatrixCSC{TvS,TiS})
convert{Tv}(::Type{SparseMatrixCSC{Tv,Int64}}, ::Base.SparseMatrix.CHOLMOD.Sparse{Tv})
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
報告された convert(::Type{SparseMatrixCSC{Float64,Int64}}, ::PyCall.PyObject) の失敗から始め、scipy.sparse.eye(4) を使って再現します。PyCall の変換処理と Julia の SparseMatrixCSC に対する期待を調査します。scipy の疎行列が MethodError なしで正常に変換できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia, python
- 領域
- data
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100