.NET Matrix Library
Capacity Property
See Also  Send comments on this topic


Gets or sets the number of elements that the internal storage of the sparse matrix can hold without resizing.
Gets or sets the number of elements that the internal storage of the sparse matrix can hold without resizing.

Syntax

Visual Basic (Declaration) 
Public Property Capacity As Integer
C# 
public int Capacity {get; set;}
C++/CLI 
public:
property int Capacity {
   int get();
   void set (    int value);
}

Property Value

The maximum number of elements that the internal storage can hold without resizing.
The maximum number of elements that the internal storage can hold without resizing.

Remarks

Capacity is automatically increased as needed while assigning elements of the sparse matrix. Each time the NumElements property is to exceed Capacity, Capacity is multiplied by the value specified by the GrowFactor property.

The NumElements returns the actual number of explicitly assigned elements.

If an attempt is made to set the Capacity to a value lower than NumElements then Capacity is set equal to NumElements.

Requirements

Platforms: Windows 7, Windows Vista, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows 2000

See Also

.NET Matrix Library Documentation