/// <summary> /// Initializes a new instance of the <see cref="SparseVector{T}"/> class. /// </summary> /// <param name="length">The length of the vector.</param> public SparseVector(int length) : base(length) { _trashCan = new SparseVectorElement(0); }
/// <summary> /// Initializes a new instance of the <see cref="SparseVector{T}"/> class. /// </summary> public SparseVector() : base(1) { _trashCan = new SparseVectorElement(0); }