This functions works for both fixed- and variable-sized dimensions and switches internally.
tiledb_array_get_non_empty_domain_from_name(arr, name)
A two-element object is returned describing the domain of selected dimension; it will either be a numeric vector in case of a fixed-size fixed-sized dimensions, or a characer vector for a variable-sized one.
A TileDB Array
An character variable with a dimension name