Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "blas/ext/base/gfill-by/docs/types/index.d"

Index

Interfaces

Type aliases

Variables

Type aliases

Binary

Binary: (value: any, aidx: number) => any

Returns a fill value.

param

array element

param

array index

returns

fill value

Type declaration

    • (value: any, aidx: number): any
    • Parameters

      • value: any
      • aidx: number

      Returns any

Callback

Returns a fill value.

param

array element

param

array index

param

strided index (offset + aidx*stride)

param

input array

returns

fill value

Nullary

Nullary: () => any

Returns a fill value.

returns

fill value

Type declaration

    • (): any
    • Returns any

Quaternary

Quaternary: (value: any, aidx: number, sidx: number, array: Collection) => any

Returns a fill value.

param

array element

param

array index

param

strided index (offset + aidx*stride)

param

input array

returns

fill value

Type declaration

    • (value: any, aidx: number, sidx: number, array: Collection): any
    • Parameters

      • value: any
      • aidx: number
      • sidx: number
      • array: Collection

      Returns any

Ternary

Ternary: (value: any, aidx: number, sidx: number) => any

Returns a fill value.

param

array element

param

array index

param

strided index (offset + aidx*stride)

returns

fill value

Type declaration

    • (value: any, aidx: number, sidx: number): any
    • Parameters

      • value: any
      • aidx: number
      • sidx: number

      Returns any

Unary

Unary: (value: any) => any

Returns a fill value.

param

array element

returns

fill value

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

Variables

Export assignment gfillBy

gfillBy: Routine

Fills a strided array according to a provided callback function.

Notes

  • The callback function is provided four arguments:

    • value: array element
    • aidx: array index
    • sidx: strided index (offset + aidx*stride)
    • array: input array
  • The callback return value is used as the fill value for the current array index.

param

number of indexed elements

param

input array

param

stride length

param

callback

param

execution context

returns

x