module
Phase::MultiWritable(T)
Direct including types
Defined in:
multi_writable.crInstance Method Summary
- #[]=(region : Indexable | IndexRegion, value)
-
#[]=(bool_mask : MultiIndexable(Bool), value)
TODO consider overriding these in NArray, may benefit from speedup?
-
#[]=(*args)
These two should go last
- #set_available(region : Indexable, value : T)
-
#set_chunk(region_literal : Indexable, src : MultiIndexable(T))
NOTE changed name from 'value' to 'src' - approve? Copies the elements from a MultiIndexable
srcintoregion. -
#set_chunk(region : Indexable | IndexRegion, value : T)
Sets each element in
regiontovalue. -
#set_element(coord : Indexable, value : T)
Sets the element specified by
coordtovalue. - #set_mask(bool_mask, src : MultiIndexable(T))
- #set_mask(bool_mask, value)
- #set_mask(bool_mask : MultiIndexable(Bool), &)
- #shape : Shape
- #size
-
#unsafe_set_chunk(region : IndexRegion, src : MultiIndexable(T))
Copies the elements from a MultiIndexable
srcintoregion, assuming thatregionis in canonical form and in-bounds for this{{@type}}and the shape ofregionmatches the shape ofsrc. -
#unsafe_set_chunk(region : IndexRegion, value : T)
Sets each element in
regiontovalue, assuming thatregionis in canonical form and in-bounds for this{{@type}}For full specification of canonical form seeRegionHelpersdocumentation. -
#unsafe_set_element(coord : Coord, value : T)
Given a coordinate representing some location in the {{@type}} and a value, store the value at that coordinate.
Instance Method Detail
TODO consider overriding these in NArray, may benefit from speedup?
NOTE changed name from 'value' to 'src' - approve?
Copies the elements from a MultiIndexable src into region.
Raises an error if region is out-of-bounds for this {{@type}} or if the shape of region does not match src.shape
Sets each element in region to value.
Raises an error if region is out-of-bounds for this {{@type}}.
Sets the element specified by coord to value.
Raises an error if coord is out-of-bounds for this {{@type}}.
Copies the elements from a MultiIndexable src into region, assuming that region is in canonical form and in-bounds for this {{@type}}
and the shape of region matches the shape of src.
For full specification of canonical form see RegionHelpers documentation. TODO: make this actually happen
Sets each element in region to value, assuming that region is in canonical form and in-bounds for this {{@type}}
For full specification of canonical form see RegionHelpers documentation. TODO: make this actually happen
Given a coordinate representing some location in the {{@type}} and a value, store the value at that coordinate. Assumes that the coordinate is in-bounds for this {{@type}}.