Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SpatseMat multiplication

I am doing an image retrieval using Bag of Words. I've constructed the inverted file which is represented by SparseMat. Now I need to multiply the inverted file with the vector of the visual words of the query to get the scores however I'm not really sure how to do it and I didn't find any documentation about it. I've tried to represent the query vector as SparseMat or Mat, but it always says: no operator "*" matches these operands. Does anyone know hot to multiply a SparsaMat without converting it to the dense form? Thanks!

SpatseMat SparseMat multiplication

I am doing an image retrieval using Bag of Words. I've constructed the inverted file which is represented by SparseMat. Now I need to multiply the inverted file with the vector of the visual words of the query to get the scores however I'm not really sure how to do it and I didn't find any documentation about it. I've tried to represent the query vector as SparseMat or Mat, but it always says: no operator "*" matches these operands. Does anyone know hot to multiply a SparsaMat without converting it to the dense form? Thanks!