예제 #1
0
            // *** IContentEquatable<SparseVector<T>.ReadOnly> interface implementation ***

            public bool ContentEquals(SparseVector <T> .ReadOnly other)
            {
                return(other != null && mVec.ContentEquals(other.Inner));
            }
예제 #2
0
파일: Utils.cs 프로젝트: 0000duck/latino
 public static double GetVecLenL2(SparseVector <double> .ReadOnly vec)
 {
     ThrowException(vec == null ? new ArgumentNullException("vec") : null);
     return(GetVecLenL2(vec.Inner));
 }
예제 #3
0
 public ReadOnly(BinarySerializer reader)
 {
     mVec = new SparseVector <T>(reader); // throws ArgumentNullException, serialization-related exceptions
 }
예제 #4
0
 public ReadOnly(SparseVector <T> vec)
 {
     Utils.ThrowException(vec == null ? new ArgumentNullException("vec") : null);
     mVec = vec;
 }
예제 #5
0
 public SparseVectorEnumerator(SparseVector <T> vec)
 {
     mVec = vec;
 }
예제 #6
0
 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
 }
예제 #7
0
 public void Append(SparseVector <T> .ReadOnly otherVec, int thisVecLen)
 {
     Utils.ThrowException(otherVec == null ? new ArgumentNullException("otherVec") : null);
     Append(otherVec.Inner, thisVecLen); // throws ArgumentOutOfRangeException
 }