Documentation Center

  • Trial Software
  • Product Updates

H5S.get_select_elem_npoints

Number of element points in selection

Syntax

numpoints = H5S.get_select_elem_npoints(space_id)

Description

numpoints = H5S.get_select_elem_npoints(space_id) returns the number of element points in the current data space selection.

Examples

Select the corner points of a data space.

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
coords = [0 0; 0 199; 99 0; 99 199];
coords = fliplr(coords);
coords = coords';
H5S.select_elements(space_id,'H5S_SELECT_SET',coords)
numpoints = H5S.get_select_elem_npoints(space_id);

See Also

Was this topic helpful?