Name
savespace
Synopsis
a
.savespace(flag
=True)
Sets or resets the space-saving mode of array
a
, depending on the truth value of
flag
. When flag
is true,
a
.savespace(
flag
)
sets a
’s space-saving
mode so that a
’s elements
are not implicitly cast up when operated with arrays of wider numeric
types. For more details on this, see the discussion of
savespace
for function
array earlier in this chapter. When
flag
is false,
a
.savespace(
flag
)
resets a
’s space-saving
mode so that a
’s elements
are implicitly cast up when needed.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.