Search
Preparing search index...
The search index is not available
Sushi2
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"src/matrix"
Matrix
Class Matrix
Hierarchy
Matrix
MatrixCL
Index
Constructors
constructor
Properties
_data
_data_
ctor
_klass
_ndims
_numel
_size
_strides
_autodestruct_
stack
_autodestruct_
stack_
top
Methods
_alloccpu
_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
reshape_
inplace
set
set_
matrix_
logical
set_
matrix_
nd
set_
matrix_
nd_
old
set_
matrix_
single
set_
scalar
setdata
squeeze_
inplace
to
String
to_
cpu
value
Of
_get_
ind_
iterator
_isinteger
_isvalidklass
_logical_
cast
_logical_
cast_
required
autodestruct_
pop
autodestruct_
push
jsa2mat
numel
size
sizejsa
typedarray2mat
Object literals
data_
ctors
Constructors
constructor
new
Matrix
(
size
:
number
[]
, klass
?:
string
, noalloc
?:
boolean
)
:
Matrix
Parameters
size:
number
[]
Default value
klass:
string
= "single"
Default value
noalloc:
boolean
= false
Returns
Matrix
Properties
_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
Methods
Private
_alloccpu
_alloccpu
(
)
:
typedef.AllowedTypedArray
Returns
typedef.AllowedTypedArray
_find
_find
(
)
:
Matrix
Returns
Matrix
_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
[]
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
to
String
to
String
(
)
:
string
Returns
string
to_
cpu
to_
cpu
(
)
:
Matrix
Returns
Matrix
value
Of
value
Of
(
)
:
number
Returns
number
Static
Private
_get_
ind_
iterator
_get_
ind_
iterator
(
ind
:
number
|
Colon
|
Matrix
, dim_size
:
number
)
:
object
Parameters
ind:
number
|
Colon
|
Matrix
dim_size:
number
Returns
object
iter
:
function
(
index
:
number
)
:
number
Parameters
index:
number
Returns
number
length
:
number
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
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/matrix"
Matrix
constructor
_data
_data_
ctor
_klass
_ndims
_numel
_size
_strides
_autodestruct_
stack
_autodestruct_
stack_
top
_alloccpu
_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
reshape_
inplace
set
set_
matrix_
logical
set_
matrix_
nd
set_
matrix_
nd_
old
set_
matrix_
single
set_
scalar
setdata
squeeze_
inplace
to
String
to_
cpu
value
Of
_get_
ind_
iterator
_isinteger
_isvalidklass
_logical_
cast
_logical_
cast_
required
autodestruct_
pop
autodestruct_
push
jsa2mat
numel
size
sizejsa
typedarray2mat
data_
ctors
Allowed
Typed
Array
Generated using
TypeDoc