legate::StringLogicalArray#

class StringLogicalArray : public legate::LogicalArray#

A multi-dimensional array representing a collection of strings.

This class is essentially a ListLogicalArray specialized for lists-of-strings data. The member functions offsets() and chars() are directly analogous to ListLogicalArray::descriptor() and ListLogicalArray::vardata().

The strings are stored in a compact form, accessible through chars(), while offsets() gives the start and end indices for each sub-string.

See also

ListLogicalArray

Public Functions

LogicalArray offsets() const#

Returns the sub-array for offsets giving the bounds of each string.

Returns:

LogicalArray of offsets into this array.

LogicalArray chars() const#

Returns the sub-array for characters of the strings.

Returns:

LogicalArray representing the characters of the strings.