pub fn index_domains(matrix: AbstractLiteral<Literal>) -> Vec<Domain>
Gets the index domains for a matrix literal.
If matrix is not a matrix.
matrix
If the number or type of elements in each dimension is inconsistent.