Registered Member
|
I want to add a sparse vector with a common vector,like the following " vxd= vec + vxd ",However,the error is "no match for 'operator +' in 'vec + vxd' ".I would like to know how should i do can deal with the situation like this.Thank you!
|
Moderator
|
Only compound assignment from sparse to dense is allowed, like:
vxd += vec; |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar