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