Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Introduce VectorLike #4320
Signed-off-by: Breezewish email@example.com
What have you changed? (mandatory)
This PR adds VectorLike, which is an enum for vector and scalar that supports index access. When underlying is a scalar, any index access will return the same value. When underlying is a vector, index access will return the corresponding element of the vector. Simply speaking, this provides a unified type for "vector like" types which will act like a vector.
This is extracted from #3898
What are the type of the changes? (mandatory)