kmath
0.3.1-dev-RC
common
kmath-core
/
space.kscience.kmath.nd
/
StructureND
/
Companion
/
buffered
buffered
fun
<
T
>
buffered
(
strides
:
Strides
,
bufferFactory
:
BufferFactory
<
T
>
=
BufferFactory.boxing()
,
initializer
:
(
IntArray
)
->
T
)
:
BufferND
<
T
>
(
source
)
Creates a NDStructure with explicit buffer factory.
Strides should be reused if possible.
fun
<
T
>
buffered
(
shape
:
ShapeND
,
bufferFactory
:
BufferFactory
<
T
>
=
BufferFactory.boxing()
,
initializer
:
(
IntArray
)
->
T
)
:
BufferND
<
T
>
(
source
)