fill_#

swordfish.function.fill_()#

Assign value to the elements of obj at index. It is equivalent to obj[index]=value.

Parameters:
  • obj (Constant) – A vector, tuple, matrix, dictionary or table.

  • index (Constant) –

    If obj is a vector, tuple or matrix, index is an integer scalar/vector;

    If obj is a dictionary, index is a string scalar/vector indicating dictionary keys;

    If obj is a table, index is a string scalar/vector indicating column names.

  • value (Constant) – A scalar/vector.