DataSharp/Mathematics/Vector.cs
/// <summary>
/// Throws an exception if 2 input Vector don't have the same length or one of them is null.
/// </summary>
/// <param name="v1">An input Vector.</param>
/// <param name="v2">The other input Vector.</param>
/// <exception cref="ArgumentNullException">If one of the input Vector is null.</exception>
/// <exception cref="ArgumentException">If 2 input Vector don't have the same length.</exception>
Throws an exception if 2 input Vector don't have the same length or one of them is null.
Throws an exception if 2 input Vector don ' t have the same length or one of them is null .
public static void LengthCheck(Vector v1, Vector v2)
        {
            if ((v1 == null) || (v2 == null))
                throw new ArgumentNullException("The input vector must not be null.");
            if (v1.Count != v2.Count)
                throw new ArgumentException("Input vectors don't have the same length.");
        }
public static void LengthCheck ( Vector v1 , Vector v2 ) { if ( ( v1 == null ) || ( v2 == null ) ) throw new ArgumentNullException ( " " ) ; if ( v1 . Count != v2 . Count ) throw new ArgumentException ( " " ) ; }
Throws an exception if 2 input Vector don't have the same length or one of them is null.
Throws an exception if 2 input Vector don ' t have the same length or one of them is null .
If one of the input Vector is null.
If one of the input Vector is null .
If 2 input Vector don't have the same length.
If 2 input Vector don ' t have the same length .
v1
Vector
An input Vector.
An input Vector .
v2
Vector
The other input Vector.
The other input Vector .