Creation Functions¶ create_diagonal Construct a diagonal array. one_hot One-hot encode the given indices.