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));