Command: capacity

NEST HelpDesk Command Index NEST Quick Reference

Name:
 capacity - Returns the capacity of an array.
Synopsis:
 array capacity -> n
Description:
 Returns the number of elements that a given array
  can hold without being re-sized.
Examples:
 [1] capacity -> 100
            101 array capacity -> 200
Remarks:
 The default size for an array is 100. If it is bigger, 
  its size is readjusted to a factor of 100. The number of elements
  in an array is given by length.
Author:
 docu by Sirko Straube
SeeAlso:reserve shrink allocations length size
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/slidata.cc

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative