Hello every body i’m trying the lib, i wanna do so...
# mathematics
a
Hello every body i’m trying the lib, i wanna do some thing like in picture but the nd struct not have setter, what’s the alternative way?
a
It is designed that way, ND-structures are not meant to be mutable. First of all could you explain what do you need to do with the structure? How do you want to fill it initially and what do you want to do with it later?
a
i want to learn the lib how it work to contribute in it, so, i implemented the fft function from a paper in my lib
Kotrix
, so i want to implement it in
kmath
, did you created a tutorial for this lib?
a
The documentation is rather limited at the moment (I do not have manpower to do it properly). For transformations like FFT you should create a factory function with signature
(Buffer<T>) -> Buffer<R>
like this one: https://github.com/mipt-npm/kmath/blob/6f4f6580306c668f603ac5542cb3d917438d68fb/kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/Buffers.kt#L280 or its suspended version. Some examples are available here: https://github.com/mipt-npm/kmath/blob/6f4f6580306c668f603ac5542cb3d917438d68fb/kmath-commons/src/main/kotlin/scientifik/kmath/transform/Transformations.kt#L14
I am currently revising streaming API a bit. It will be possible to use suspendable transformations in future.
a
i’m sorry for too much questions, i had searched on google about suspendable transformation but i haven’t found clear explain. what is it?