fields.base.SparseField.num_components#
- property SparseField.num_components: int#
Total number of components in the sparse field.
Each component corresponds to a distinct entry in the internal component dictionary, typically indexed by an integer or tuple of integers. This property provides a quick way to determine the field’s structural richness or tensorial complexity.
- Returns:
The number of active components stored in the field.
- Return type: