class Phase::View(S, R)

Included Modules

Defined in:

view.cr

Constructors

Instance Method Summary

Instance methods inherited from module Phase::MultiWritable(R)

[]=(region : Indexable | IndexRegion, value)
[]=(bool_mask : MultiIndexable(Bool), value)
[]=(*args)
[]=
, set_available(region : Indexable, value : T) set_available, set_chunk(region_literal : Indexable, src : MultiIndexable(T))
set_chunk(region : Indexable | IndexRegion, value : T)
set_chunk
, set_element(coord : Indexable, value : T) set_element, set_mask(bool_mask, src : MultiIndexable(T))
set_mask(bool_mask, value)
set_mask(bool_mask : MultiIndexable(Bool), &)
set_mask
, shape : Shape shape, size size, unsafe_set_chunk(region : IndexRegion, src : MultiIndexable(T))
unsafe_set_chunk(region : IndexRegion, value : T)
unsafe_set_chunk
, unsafe_set_element(coord : Coord, value : T) unsafe_set_element

Instance methods inherited from class Phase::ReadonlyView(S, R)

clone : self clone, permute(order : Enumerable | Nil = nil) : self
permute(*args)
permute
, permute!(order : Enumerable | Nil = nil) : self
permute!(*args)
permute!
, process(new_proc : R -> U) : ProcView(S, R, U) forall U
process(&block : R -> U) : ProcView(S, R, U) forall U
process
, reshape(new_shape) : self
reshape(*args)
reshape
, reshape!(new_shape : Array(Int32)) : self
reshape!(*args)
reshape!
, reverse : self reverse, reverse! : self reverse!, shape_internal : Array(Int32) shape_internal, to_narr : NArray to_narr, unsafe_fetch_chunk(region : IndexRegion) : self unsafe_fetch_chunk, unsafe_fetch_element(coord : Indexable) : R unsafe_fetch_element, view(region = nil) : self view

Constructor methods inherited from class Phase::ReadonlyView(S, R)

of(src : S, region = nil) : self of

Instance methods inherited from module Phase::MultiIndexable(R)

%(other : MultiIndexable(U)) forall U
%(other)
%
, &(other : MultiIndexable(U)) forall U
&(other)
&
, &*(other : MultiIndexable(U)) forall U
&*(other)
&*
, &**(other : MultiIndexable(U)) forall U
&**(other)
&**
, &+(other : MultiIndexable(U)) forall U
&+(other)
&+
, &-(other : MultiIndexable(U)) forall U
&-(other)
&-
, *(other : MultiIndexable(U)) forall U
*(other)
*
, **(other : MultiIndexable(U)) forall U
**(other)
**
, +(other : MultiIndexable(U)) forall U
+(other)
+
+
, -(other : MultiIndexable(U)) forall U
-(other)
-
-
, /(other : MultiIndexable(U)) forall U
/(other)
/
, //(other : MultiIndexable(U)) forall U
//(other)
//
, <(other : MultiIndexable(U)) forall U
<(other)
<
, <=(other : MultiIndexable(U)) forall U
<=(other)
<=
, <=>(other : MultiIndexable(U)) forall U
<=>(other)
<=>
, ==(other : self) : Bool ==, =~(value) : MultiIndexable(Bool) =~, >(other : MultiIndexable(U)) forall U
>(other)
>
, >=(other : MultiIndexable(U)) forall U
>=(other)
>=
, [](region_literal : Indexable, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
[](region : IndexRegion)
[](*region_literal, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
[]
, []?(bool_mask : MultiIndexable(Bool)) : MultiIndexable(T | Nil)
[]?(region : Indexable, drop : Bool = MultiIndexable::DROP_BY_DEFAULT) : MultiIndexable(T) | Nil
[]?(region : IndexRegion) : MultiIndexable(T) | Nil
[]?(*region_literal, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
[]?
, ^(other : MultiIndexable(U)) forall U
^(other)
^
, |(other : MultiIndexable(U)) forall U
|(other)
|
, ~ ~, apply : ApplyProxy apply, apply! : InPlaceApplyProxy apply!, colex_each : ElemIterator
colex_each(&) : Nil
colex_each
, colex_each_coord : ColexIterator
colex_each_coord(&) : Nil
colex_each_coord
, dimensions : Int dimensions, each : ElemIterator
each(&) : Nil
each
, each_coord : LexIterator
each_coord(&) : Nil
each_coord
, each_slice(axis = 0) : Iterator
each_slice(axis = 0, &)
each_slice
, each_with(*args, &) each_with, each_with_coord : ElemAndCoordIterator
each_with_coord(&) : Nil
each_with_coord
, empty? : Bool empty?, ensure_writable ensure_writable, eq(other : MultiIndexable(U)) : MultiIndexable(Bool) forall U
eq(value) : MultiIndexable(Bool)
eq
, equals?(other : MultiIndexable, &) : Bool equals?, fast_each : Iterator(T)
fast_each(&) : Nil
fast_each
, first : T first, get(coord : Indexable) : T
get(*coord : Int)
get
, get_available(region_literal : Indexable, drop : Bool = DROP_BY_DEFAULT)
get_available(region : IndexRegion, drop : Bool = DROP_BY_DEFAULT)
get_available(*region_literal, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
get_available
, get_chunk(coord : Indexable, region_shape : Indexable(I)) forall I
get_chunk(region_literal : Indexable, drop : Bool = DROP_BY_DEFAULT)
get_chunk(region : IndexRegion) : MultiIndexable(T)
get_chunk(*region_literal, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
get_chunk
, get_element(coord : Indexable) : T
get_element(*coord : Int)
get_element
, has_coord?(coord : Indexable) : Bool
has_coord?(*coord : Int)
has_coord?
, has_region?(region_literal : Indexable, drop : Bool = DROP_BY_DEFAULT) : Bool
has_region?(region : IndexRegion) : Bool
has_region?(*region_literal, drop : Bool = MultiIndexable::DROP_BY_DEFAULT)
has_region?
, hash(hasher) hash, last : T last, map(&block : T -> R) : MultiIndexable(R) forall R map, map!(&block : T -> T | MultiIndexable(T)) : MultiIndexable(T) map!, map_with(*args : *U, &) forall U
map_with(*args, &)
map_with
, map_with!(*args : *U, &) forall U map_with!, map_with_coord(&) map_with_coord, map_with_coord!(&block : T -> MultiIndexable(T)) map_with_coord!, permute(*args) : MultiIndexable(T) permute, process(&block : T -> R) : ProcView(self, T, R) forall R
process(proc : Proc(T, R)) : ProcView(self, T, R) forall R
process
, reshape(*args) : MultiIndexable(T) reshape, reverse(*args) : MultiIndexable(T) reverse, sample(n : Int, random = Random::DEFAULT) : Enumerable(T)
sample(random = Random::DEFAULT) : T
sample
, scalar? : Bool scalar?, shape : Array shape, size size, slices(axis = 0) : Indexable slices, tile(counts : Enumerable(Int)) : MultiIndexable
tile(*counts : Int)
tile
, to_f : Float to_f, to_literal_s(io : IO) : Nil to_literal_s, to_narr : NArray(T) to_narr, to_s(io : IO, settings = Formatter::Settings.new) : Nil
to_s(settings = Formatter::Settings.new) : String
to_s
, to_scalar : T to_scalar, to_scalar? : T | Nil to_scalar?, unsafe_fetch_chunk(region : IndexRegion) : MultiIndexable(T) unsafe_fetch_chunk, unsafe_fetch_element(coord : Indexable) : T unsafe_fetch_element, view(region : Indexable | Nil | IndexRegion = nil) : View(self, T)
view(*region) : View(self, T)
view

Class methods inherited from module Phase::MultiIndexable(R)

each_with(*args : *U, &) forall U each_with

Macros inherited from module Phase::MultiIndexable(R)

coord_splat_overload(name) coord_splat_overload, def_elementwise_binary(name) def_elementwise_binary, def_elementwise_unary(name) def_elementwise_unary, region_splat_overload(name) region_splat_overload

Constructor Detail

def self.of(src : S, region : Enumerable | Nil = nil) : self #

[View source]

Instance Method Detail

def unsafe_set_element(coord : Indexable, value : R) #

[View source]