Quantcast
Channel: Accessing elements in coo_matrix - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Accessing elements in coo_matrix

$
0
0

This is a very simple question. For SciPy sparse matrices like coo_matrix, how does one access individual elements?

To give an analogy to Eigen linear algebra library. One can access element (i,j) using coeffRef as follows:

myMatrix.coeffRef(i,j)

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>