Converts a complex number to a matrix.
// Returns the 2×2 matrix:// [// [3, -4],// [4, 3]// ]const matr = Chalkboard.comp.toMatrix(Chalkboard.comp.init(3, 4)); Copy
// Returns the 2×2 matrix:// [// [3, -4],// [4, 3]// ]const matr = Chalkboard.comp.toMatrix(Chalkboard.comp.init(3, 4));
The complex number
Converts a complex number to a matrix.
Example