我正在制作一个包含将进一步派生为3种类型的GVector类,即MVector (米特空间矢量)class GVector {//Will contain functions to convert the same vector into a different space我想让两个位于同一空间的向量相加成为可能
MVectorvirtual GVector* operator+ (const GVector
我正在尝试使用 (0.6.3版本)来操作稀疏向量。我想把两个向量相加。我从一个Add特征的实现开始,然后将其简化为一个实现函数。最后,我将问题归结为一个简单的泛型函数。我收到这个错误消息:
error[E0369]: binary operation `+` cannot be applied to type `&sprs::sparse::CsVecBase<stdAdd` might be missing for `&sprs::sparse: