You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of fill clarifies that the returned object is filled with the same object, which is important when the element is mutable. ones and zeros also work the same way, but the documentation is not clear on this (for Julia version 1.10.3). Example:
Here's a draft phrasing to be added to the documentation of zeros and ones, modified from fill's documentation.
Every location of the returned array is set to (and is thus === to) the same value; this means that if the value is itself modified, all elements of the filled array will reflect that modification because they're still that very value. This is of concern when the values are mutable.
The text was updated successfully, but these errors were encountered:
The documentation of
fill
clarifies that the returned object is filled with the same object, which is important when the element is mutable.ones
andzeros
also work the same way, but the documentation is not clear on this (for Julia version 1.10.3). Example:Here's a draft phrasing to be added to the documentation of
zeros
andones
, modified fromfill
's documentation.The text was updated successfully, but these errors were encountered: