Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new MatrixCL(size: number[], klass?: string): MatrixCL

Properties

_clbuffer

_clbuffer: $CL.clBuffer

_data

_data: typedef.AllowedTypedArray

_data_ctor

_data_ctor: any

_klass

_klass: string

_ndims

_ndims: number

_numel

_numel: number

_size

_size: number[]

_strides

_strides: number[]

Static _autodestruct_stack

_autodestruct_stack: Matrix[] = []

Static _autodestruct_stack_top

_autodestruct_stack_top: Matrix[] = null

Static kernel_cache

kernel_cache: object

Type declaration

Methods

_fill

  • _fill(val: number): void

_find

_getarrayindex

  • _getarrayindex(inds: number[]): number

_getdata

  • _getdata(): typedef.AllowedTypedArray

_isvalidindex

  • _isvalidindex(inds: number[]): boolean

_isvalidindexerr

  • _isvalidindexerr(inds: number[]): void

copy

  • copy(klass?: string): Matrix

destruct

  • destruct(): void

disp

  • disp(X?: any): void

get

  • get(): number
  • get(...args: number[]): number
  • get(...args: any[]): Matrix

get_matrix_logical

get_matrix_nd

get_matrix_nd_old

get_matrix_single

get_scalar

  • get_scalar(inds: number[]): number

getdatacopy

  • getdatacopy(src_offset?: number, length?: number, dst?: typedef.AllowedTypedArray): typedef.AllowedTypedArray
  • Parameters

    • Default value src_offset: number = 0
    • Optional length: number
    • Optional dst: typedef.AllowedTypedArray

    Returns typedef.AllowedTypedArray

getdataref

  • getdataref(src_offset?: number, length?: number): typedef.AllowedTypedArray

inspect

  • inspect(depth: number): string

mat2jsa

  • mat2jsa(one_d_flatten?: boolean): any[]

read

  • read(dst_typed_array: any, src_bytes_offset?: number): void
  • Parameters

    • dst_typed_array: any
    • Optional src_bytes_offset: number

    Returns void

reshape_inplace

  • reshape_inplace(sz: Matrix): any
  • reshape_inplace(sz: number[]): any
  • reshape_inplace(...sz: number[]): any

set

set_matrix_logical

  • set_matrix_logical(val: number | Matrix, map: Matrix): void

set_matrix_nd

set_matrix_nd_old

set_matrix_single

set_scalar

  • set_scalar(val: number | Matrix, inds: number[]): void

setdata

  • setdata(src: typedef.AllowedTypedArray, dst_offset?: number): void

squeeze_inplace

  • squeeze_inplace(): void

Private throw_if_destructed

  • throw_if_destructed(): void

toString

  • toString(): string

to_cpu

valueOf

  • valueOf(): number

write

  • write(src_typed_array: any, dst_bytes_offset?: number): void
  • Parameters

    • src_typed_array: any
    • Optional dst_bytes_offset: number

    Returns void

Static _fromnativemat

Static _fromtypedarray

  • _fromtypedarray(src_typed_array: typedef.AllowedTypedArray, klass: string): MatrixCL

Static Private _get_ind_iterator_cl

  • _get_ind_iterator_cl(ind: number | Colon | Matrix, dim_size: number): object
  • Parameters

    Returns object

    • kernel_arg: object
      • Optional access?: any
      • datum: any
      • Optional type?: any
    • length: number
    • to_destruct: MatrixCL
    • typename: string

Static _isinteger

  • _isinteger(x: any): boolean

Static _isvalidklass

  • _isvalidklass(klass: any): boolean

Static _logical_cast

  • _logical_cast(val: any): number

Static _logical_cast_required

  • _logical_cast_required(klass_dst: string, klass_src?: string): boolean

Static autodestruct_pop

  • autodestruct_pop(): void

Static autodestruct_push

  • autodestruct_push(): void

Static cast_scalar_val

  • cast_scalar_val(val: number, klass: string): number

Static get_cast_str

  • get_cast_str(dst_klass: string, src_klass: string): string

Static jsa2mat

  • jsa2mat(ary: any, one_d_column?: boolean, klass?: string): Matrix
  • Parameters

    • ary: any
    • Default value one_d_column: boolean = false
    • Default value klass: string = "single"

    Returns Matrix

Static numel

Static size

Static sizejsa

  • sizejsa(X: Matrix): number[]

Static typedarray2mat

  • typedarray2mat(size: number[], klass?: string, data: typedef.AllowedTypedArray): Matrix

Object literals

Static data_ctors

data_ctors: object

int32

int32: Int32ArrayConstructor = Int32Array

logical

logical: Uint8ArrayConstructor = Uint8Array

single

single: Float32ArrayConstructor = Float32Array

uint8

uint8: Uint8ArrayConstructor = Uint8Array

Generated using TypeDoc