kokkos/views

Types

DynamicView[T] {.importcpp: "DynamicView", header: "../kokkos/kokkos.hpp".} = object
StaticView[T] {.importcpp: "StaticView", header: "../kokkos/kokkos.hpp".} = object

Procs

proc `[]`[T](view: StaticView[T]; n: SomeInteger): T {.inline.}

Access element of Kokkos static view

<in need of documentation>

proc `[]=`[T](view: var StaticView[T]; n: SomeInteger; value: T) {.inline.}

Set element of Kokkos static view

<in need of documentation>

proc newDynamicView(dims: openArray[SomeInteger]; T: typedesc): DynamicView[T] {.
    inline.}
proc newDynamicView(T: typedesc; dims: openArray[SomeInteger]): DynamicView[T] {.
    inline.}
proc newStaticView(n: SomeInteger; T: typedesc): StaticView[T] {.inline.}
proc newStaticView[T](globalPointer: GlobalPointer[T]; n: SomeInteger): StaticView[
    T] {.inline.}
proc newStaticView[T](localPointer: ptr T; n: SomeInteger): StaticView[T] {.
    inline.}
proc newStaticView[T](n: SomeInteger; globalPointer: GlobalPointer[T]): StaticView[
    T] {.inline.}
proc newStaticView[T](n: SomeInteger; localPointer: ptr T): StaticView[T] {.
    inline.}