• Alexandre Brown

    Alexandre Brown

    4 months ago
    Hello just wondering, does KMath have a function to compute the area of the intersection between two rectangles ?
    Alexandre Brown
    i
    +1
    4 replies
    Copy to Clipboard
  • Muhammet Emin Gündoğar

    Muhammet Emin Gündoğar

    4 months ago
    fun Int.floorEven() = this and 0x01.inv()
    I was reading a project and i saw this code but i could not understand why this code flooring the number to even i know 01 inverse equals to -2 because of 2's complement equals to 1's complement - 1 and 2 complent is negative of that number but i could not understand why this code will always work?
    Muhammet Emin Gündoğar
    1 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    3 months ago
    Does anyone know if multik has something like np.roll() for d2Array?
    Big Chungus
    Pavel Gorgulov
    +1
    16 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    3 months ago
    Does anyone have a handy link for 3d <> 1d array index conversions? Google only surfaces the common 2d<>1d... I basically need to get x,y,z coordinates from a given 1d array index
    Big Chungus
    altavir
    4 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    3 months ago
    Anyone here familiar with OpenCV Java and would be willing to answer a few questions about Dnn and Mat? The docs for java are pretty much non-existent and the API differs quite a lot in some places from Python...
    Big Chungus
    altavir
    +1
    3 replies
    Copy to Clipboard
  • altavir

    altavir

    3 months ago
    Does anybody want earth coordinate transformation? I've added them because people asked me but I wonder if there are specific features people need? For example distance computations?
    altavir
    a
    3 replies
    Copy to Clipboard
  • altavir

    altavir

    3 months ago
    @ESchouten By the way, a team in our centre is currently working on enhancement of Dubins algorithm. They are doing it in Python, but probably it would be interesting to have it in Kotlin. Would you be interesting to include your implementation in KMath-geometry, or it is better to have it in a separate package?
    altavir
    ESchouten
    7 replies
    Copy to Clipboard
  • s

    Sam Stone

    3 months ago
    Ideomatic way to get the closest multiple of .5 to a given float? E.g.
    closest(1.03)=1.05
    ,
    closest(1.02)=1.00
    ,
    closest(1.05)=1.05
    s
    altavir
    +1
    4 replies
    Copy to Clipboard
  • s

    Sam Stone

    2 months ago
    How do you get the fractional part of a double?
    s
    Gleb Minaev
    7 replies
    Copy to Clipboard
  • altavir

    altavir

    2 months ago
    @Gleb Minaev I've started to do a review on your PR. It is too large to be in
    functions
    module (it is intended to be lightweight). Could you create a separate module like
    kmath-rational
    and move all but basic polynomials there?
    altavir
    Gleb Minaev
    11 replies
    Copy to Clipboard