Converts a set or algebraic structure to a vector.
The set or structure
The dimension of the vector, which can be 2, 3, or 4
Optional
The index of the array to start the vector
const set = Chalkboard.abal.set([1, 2, 3, 4]);const vector = Chalkboard.abal.toVector(set, 3, 1); // Returns the vector (2, 3, 4) Copy
const set = Chalkboard.abal.set([1, 2, 3, 4]);const vector = Chalkboard.abal.toVector(set, 3, 1); // Returns the vector (2, 3, 4)
Converts a set or algebraic structure to a vector.