Skip to content

INDArray#fmod doesn't support long data type #10033

@ebeaufay

Description

@ebeaufay

Issue Description

I noticed INDArray#fmod doesn't work as expected on Long data type arrays

long[] l = new long[]{805459861L*15L};
INDArray arrayLong = Nd4j.createFromArray(l);
long mod = l[0] % 4096;
System.out.println(mod); // prints : 443

arrayLong.fmodi(4096L);
System.out.println(arrayLong.getLong()); // prints : 0

Version Information

Please indicate relevant versions, including, if relevant:

  • 1.0.0-M2.1
  • windows
  • CUDA 11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions