Return similarity of sparse vector query to all documents in the corpus, as a numpy array.

If query is a collection of documents, return a 2D array of similarities of each document in query to all documents in the corpus (=batch query, faster than processing each document in turn).

Do not use this function directly; use the self[query] syntax instead.