// *** IContentEquatable<SparseVector<T>.ReadOnly> interface implementation *** public bool ContentEquals(SparseVector <T> .ReadOnly other) { return(other != null && mVec.ContentEquals(other.Inner)); }
public static double GetVecLenL2(SparseVector <double> .ReadOnly vec) { ThrowException(vec == null ? new ArgumentNullException("vec") : null); return(GetVecLenL2(vec.Inner)); }
public ReadOnly(BinarySerializer reader) { mVec = new SparseVector <T>(reader); // throws ArgumentNullException, serialization-related exceptions }
public ReadOnly(SparseVector <T> vec) { Utils.ThrowException(vec == null ? new ArgumentNullException("vec") : null); mVec = vec; }
public SparseVectorEnumerator(SparseVector <T> vec) { mVec = vec; }
public void Merge(SparseVector <T> .ReadOnly otherVec, Utils.BinaryOperatorDelegate <T> binaryOperator) { Utils.ThrowException(otherVec == null ? new ArgumentNullException("otherVec") : null); Merge(otherVec.Inner, binaryOperator); // throws ArgumentNullException }
public void Append(SparseVector <T> .ReadOnly otherVec, int thisVecLen) { Utils.ThrowException(otherVec == null ? new ArgumentNullException("otherVec") : null); Append(otherVec.Inner, thisVecLen); // throws ArgumentOutOfRangeException }