nupp.gpu.layout
Module contents
Constructors
| Constructor | Description |
|---|---|
new |
Types
| Type | Kind | Description |
|---|---|---|
Layout | record |
Functions
| Function | Kind | Description |
|---|---|---|
asStrided | function | |
broadcast | function | |
dimensions | function | |
extent | function | |
isDense | function | |
isInjective | function | |
offset | function | |
strides | function | |
subview | function | |
transpose | function |
Constructors#
layout.newconstructor#
Arguments
| Name | Type | Description |
|---|---|---|
offset | integer | |
shape | {integer} | |
strides | {integer} |
Returns
| Type | Description |
|---|---|
layout.Layout |
Types#
Layoutrecord#
Fields
Functions#
layout.asStridedfunction#
function layout.asStrided(borrows value: layout.Layout, shape: {integer}, strides: {integer}, relativeOffset: integer): layout.LayoutArguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout | |
shape | {integer} | |
strides | {integer} | |
relativeOffset | integer |
Returns
| Type | Description |
|---|---|
layout.Layout |
layout.broadcastfunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout | |
shape | {integer} |
Returns
| Type | Description |
|---|---|
layout.Layout |
layout.dimensionsfunction#
function layout.dimensions(borrows value: layout.Layout): {integer}Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
{integer} |
layout.extentfunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
integer |
layout.isDensefunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
boolean |
layout.isInjectivefunction#
function layout.isInjective(borrows value: layout.Layout): booleanArguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
boolean |
layout.offsetfunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
integer |
layout.stridesfunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout |
Returns
| Type | Description |
|---|---|
{integer} |
layout.subviewfunction#
function layout.subview(borrows value: layout.Layout, origin: {integer}, shape: {integer}): layout.LayoutArguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout | |
origin | {integer} | |
shape | {integer} |
Returns
| Type | Description |
|---|---|
layout.Layout |
layout.transposefunction#
Arguments
| Name | Type | Description |
|---|---|---|
borrows value | layout.Layout | |
order | {integer} |
Returns
| Type | Description |
|---|---|
layout.Layout |