Search
Preparing search index...
The search index is not available
Sushi2
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"src/cl/matrix_cl"
MatrixCL
Class MatrixCL
Hierarchy
Matrix
MatrixCL
Index
Constructors
constructor
Properties
_clbuffer
_data
_data_
ctor
_klass
_ndims
_numel
_size
_strides
_autodestruct_
stack
_autodestruct_
stack_
top
kernel_
cache
Methods
_fill
_find
_getarrayindex
_getdata
_isvalidindex
_isvalidindexerr
copy
destruct
disp
get
get_
matrix_
logical
get_
matrix_
nd
get_
matrix_
nd_
old
get_
matrix_
single
get_
scalar
getdatacopy
getdataref
inspect
mat2jsa
read
reshape_
inplace
set
set_
matrix_
logical
set_
matrix_
nd
set_
matrix_
nd_
old
set_
matrix_
single
set_
scalar
setdata
squeeze_
inplace
throw_
if_
destructed
to
String
to_
cpu
value
Of
write
_fromnativemat
_fromtypedarray
_get_
ind_
iterator_
cl
_isinteger
_isvalidklass
_logical_
cast
_logical_
cast_
required
autodestruct_
pop
autodestruct_
push
cast_
scalar_
val
get_
cast_
str
jsa2mat
numel
size
sizejsa
typedarray2mat
Object literals
data_
ctors
Constructors
constructor
new
MatrixCL
(
size
:
number
[]
, klass
?:
string
)
:
MatrixCL
Parameters
size:
number
[]
Optional
klass:
string
Returns
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
Parameters
val:
number
Returns
void
_find
_find
(
)
:
MatrixCL
Returns
MatrixCL
_getarrayindex
_getarrayindex
(
inds
:
number
[]
)
:
number
Parameters
inds:
number
[]
Returns
number
_getdata
_getdata
(
)
:
typedef.AllowedTypedArray
Returns
typedef.AllowedTypedArray
_isvalidindex
_isvalidindex
(
inds
:
number
[]
)
:
boolean
Parameters
inds:
number
[]
Returns
boolean
_isvalidindexerr
_isvalidindexerr
(
inds
:
number
[]
)
:
void
Parameters
inds:
number
[]
Returns
void
copy
copy
(
klass
?:
string
)
:
Matrix
Parameters
Optional
klass:
string
Returns
Matrix
destruct
destruct
(
)
:
void
Returns
void
disp
disp
(
X
?:
any
)
:
void
Parameters
Optional
X:
any
Returns
void
get
get
(
)
:
number
get
(
...
args
:
number
[]
)
:
number
get
(
...
args
:
any
[]
)
:
Matrix
Returns
number
Parameters
Rest
...
args:
number
[]
Returns
number
Parameters
Rest
...
args:
any
[]
Returns
Matrix
get_
matrix_
logical
get_
matrix_
logical
(
map
:
Matrix
)
:
Matrix
Parameters
map:
Matrix
Returns
Matrix
get_
matrix_
nd
get_
matrix_
nd
(
inds
:
number
|
Colon
|
Matrix
)
:
Matrix
Parameters
inds:
number
|
Colon
|
Matrix
Returns
Matrix
get_
matrix_
nd_
old
get_
matrix_
nd_
old
(
inds
:
number
|
Colon
|
Matrix
)
:
Matrix
Parameters
inds:
number
|
Colon
|
Matrix
Returns
Matrix
get_
matrix_
single
get_
matrix_
single
(
singleind
:
Colon
|
Matrix
)
:
Matrix
Parameters
singleind:
Colon
|
Matrix
Returns
Matrix
get_
scalar
get_
scalar
(
inds
:
number
[]
)
:
number
Parameters
inds:
number
[]
Returns
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
Parameters
Default value
src_offset:
number
= 0
Optional
length:
number
Returns
typedef.AllowedTypedArray
inspect
inspect
(
depth
:
number
)
:
string
Parameters
depth:
number
Returns
string
mat2jsa
mat2jsa
(
one_d_flatten
?:
boolean
)
:
any
[]
Parameters
Default value
one_d_flatten:
boolean
= false
Returns
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
Parameters
sz:
Matrix
Returns
any
Parameters
sz:
number
[]
Returns
any
Parameters
Rest
...
sz:
number
[]
Returns
any
set
set
(
ind
:
number
|
Matrix
|
Colon
, val
:
number
|
Matrix
|
any
[]
)
:
void
set
(
row
:
number
|
Matrix
|
Colon
, col
:
number
|
Matrix
|
Colon
, val
:
number
|
Matrix
|
any
[]
)
:
void
set
(
...
args
:
any
[]
)
:
void
Parameters
ind:
number
|
Matrix
|
Colon
val:
number
|
Matrix
|
any
[]
Returns
void
Parameters
row:
number
|
Matrix
|
Colon
col:
number
|
Matrix
|
Colon
val:
number
|
Matrix
|
any
[]
Returns
void
Parameters
Rest
...
args:
any
[]
Returns
void
set_
matrix_
logical
set_
matrix_
logical
(
val
:
number
|
Matrix
, map
:
Matrix
)
:
void
Parameters
val:
number
|
Matrix
map:
Matrix
Returns
void
set_
matrix_
nd
set_
matrix_
nd
(
val
:
number
|
Matrix
, inds
:
number
|
Colon
|
Matrix
)
:
void
Parameters
val:
number
|
Matrix
inds:
number
|
Colon
|
Matrix
Returns
void
set_
matrix_
nd_
old
set_
matrix_
nd_
old
(
val
:
number
|
Matrix
, inds
:
number
|
Colon
|
Matrix
)
:
void
Parameters
val:
number
|
Matrix
inds:
number
|
Colon
|
Matrix
Returns
void
set_
matrix_
single
set_
matrix_
single
(
val
:
number
|
Matrix
, singleind
:
Colon
|
Matrix
)
:
void
Parameters
val:
number
|
Matrix
singleind:
Colon
|
Matrix
Returns
void
set_
scalar
set_
scalar
(
val
:
number
|
Matrix
, inds
:
number
[]
)
:
void
Parameters
val:
number
|
Matrix
inds:
number
[]
Returns
void
setdata
setdata
(
src
:
typedef.AllowedTypedArray
, dst_offset
?:
number
)
:
void
Parameters
src:
typedef.AllowedTypedArray
Default value
dst_offset:
number
= 0
Returns
void
squeeze_
inplace
squeeze_
inplace
(
)
:
void
Returns
void
Private
throw_
if_
destructed
throw_
if_
destructed
(
)
:
void
Returns
void
to
String
to
String
(
)
:
string
Returns
string
to_
cpu
to_
cpu
(
)
:
Matrix
Returns
Matrix
value
Of
value
Of
(
)
:
number
Returns
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
_fromnativemat
(
A
:
Matrix
)
:
MatrixCL
Parameters
A:
Matrix
Returns
MatrixCL
Static
_fromtypedarray
_fromtypedarray
(
src_typed_array
:
typedef.AllowedTypedArray
, klass
:
string
)
:
MatrixCL
Parameters
src_typed_array:
typedef.AllowedTypedArray
klass:
string
Returns
MatrixCL
Static
Private
_get_
ind_
iterator_
cl
_get_
ind_
iterator_
cl
(
ind
:
number
|
Colon
|
Matrix
, dim_size
:
number
)
:
object
Parameters
ind:
number
|
Colon
|
Matrix
dim_size:
number
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
Parameters
x:
any
Returns
boolean
Static
_isvalidklass
_isvalidklass
(
klass
:
any
)
:
boolean
Parameters
klass:
any
Returns
boolean
Static
_logical_
cast
_logical_
cast
(
val
:
any
)
:
number
Parameters
val:
any
Returns
number
Static
_logical_
cast_
required
_logical_
cast_
required
(
klass_dst
:
string
, klass_src
?:
string
)
:
boolean
Parameters
klass_dst:
string
Optional
klass_src:
string
Returns
boolean
Static
autodestruct_
pop
autodestruct_
pop
(
)
:
void
Returns
void
Static
autodestruct_
push
autodestruct_
push
(
)
:
void
Returns
void
Static
cast_
scalar_
val
cast_
scalar_
val
(
val
:
number
, klass
:
string
)
:
number
Parameters
val:
number
klass:
string
Returns
number
Static
get_
cast_
str
get_
cast_
str
(
dst_klass
:
string
, src_klass
:
string
)
:
string
Parameters
dst_klass:
string
src_klass:
string
Returns
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
numel
(
A
:
Matrix
)
:
number
Parameters
A:
Matrix
Returns
number
Static
size
size
(
X
:
Matrix
)
:
Matrix
size
(
X
:
Matrix
, dim
:
number
)
:
number
Parameters
X:
Matrix
Returns
Matrix
Parameters
X:
Matrix
dim:
number
Returns
number
Static
sizejsa
sizejsa
(
X
:
Matrix
)
:
number
[]
Parameters
X:
Matrix
Returns
number
[]
Static
typedarray2mat
typedarray2mat
(
size
:
number
[]
, klass
?:
string
, data
:
typedef.AllowedTypedArray
)
:
Matrix
Parameters
size:
number
[]
Default value
klass:
string
= "single"
data:
typedef.AllowedTypedArray
Returns
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
Globals
"src/cl/matrix_
cl"
MatrixCL
constructor
_clbuffer
_data
_data_
ctor
_klass
_ndims
_numel
_size
_strides
_autodestruct_
stack
_autodestruct_
stack_
top
kernel_
cache
_fill
_find
_getarrayindex
_getdata
_isvalidindex
_isvalidindexerr
copy
destruct
disp
get
get_
matrix_
logical
get_
matrix_
nd
get_
matrix_
nd_
old
get_
matrix_
single
get_
scalar
getdatacopy
getdataref
inspect
mat2jsa
read
reshape_
inplace
set
set_
matrix_
logical
set_
matrix_
nd
set_
matrix_
nd_
old
set_
matrix_
single
set_
scalar
setdata
squeeze_
inplace
throw_
if_
destructed
to
String
to_
cpu
value
Of
write
_fromnativemat
_fromtypedarray
_get_
ind_
iterator_
cl
_isinteger
_isvalidklass
_logical_
cast
_logical_
cast_
required
autodestruct_
pop
autodestruct_
push
cast_
scalar_
val
get_
cast_
str
jsa2mat
numel
size
sizejsa
typedarray2mat
data_
ctors
Allowed
Typed
Array
WebCL
ctypes
webcltypes
Generated using
TypeDoc