Skip to main content

replicate

Method of IntegerArray.

Overloads

NameDescription
replicate(integer factor) -> IntegerArrayReplicates the elements of the IntegerArray lhs in-place by the specified factors.
replicate(integer rowFactor, integer colFactor) -> IntegerArrayReplicates the elements of the IntegerArray lhs in-place by the specified factors.

replicate(integer factor) -> IntegerArray

Replicates the elements of the IntegerArray lhs in-place by the specified factors.

Parameters

  • factor: The factor by which to replicate the vector.

replicate(integer rowFactor, integer colFactor) -> IntegerArray

Replicates the elements of the IntegerArray lhs in-place by the specified factors.

Parameters

  • rowFactor: The factor by which to replicate the rows.
  • colFactor: The factor by which to replicate the columns.