Initializes a vector with all its components filled with one number.

  • Parameters

    • num: number

      The number

    • dimension: 2 | 3 | 4

      The dimension of the vector, which can be 2, 3, or 4

    Returns ChalkboardVector