c++ - What are the differences between the various boost ublas sparse vectors? -
In the boost :: numerical :: ublas
, there are.
I can see that mapped_vector
is essentially a value from a stl :: map
index, which is not found in all values 0 (or Whatever is the normal value).
but compressed_vector
and coordinator_ector
.
The documentation on the information is sparse (ha ha). Can anyone clarify? I am trying to remove the algorithmic complexity of adding objects to various Vectors and Dot products between two such Vectors.
In a very useful answer, it was reported that the compressed_ vector is very similar, but it seems that, for example, is only for the collection of matrix - not just vectors.
I think that the unambiguous_error
is the type of storage, but I am not sure the specification is for it, or if I am creating a compressed_quark with 200,000,000 sizes, but only With 5 non-zero locations, is it any less efficient than any other than making a compressed_ vector with 10 and 5 non-zero locations?
Many thanks!
Instead of matrix with vector and you have the answer
Comments
Post a Comment