All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.pytorch.gloo.ReductionFunctionInt Maven / Gradle / Ivy

The newest version!
// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE

package org.bytedeco.pytorch.gloo;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import org.bytedeco.javacpp.chrono.*;
import static org.bytedeco.javacpp.global.chrono.*;
import org.bytedeco.pytorch.*;
import static org.bytedeco.pytorch.global.torch.*;

import static org.bytedeco.pytorch.global.gloo.*;


@Name("gloo::ReductionFunction") @NoOffset @Properties(inherit = org.bytedeco.pytorch.presets.gloo.class)
public class ReductionFunctionInt extends Pointer {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public ReductionFunctionInt(Pointer p) { super(p); }

  public static class Function extends FunctionPointer {
      static { Loader.load(); }
      /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
      public    Function(Pointer p) { super(p); }
      protected Function() { allocate(); }
      private native void allocate();
      public native void call(IntPointer arg0, @Const IntPointer arg1, @Cast("size_t") long n);
  }

  
  
  
  

  public ReductionFunctionInt(ReductionType type, Function fn) { super((Pointer)null); allocate(type, fn); }
  private native void allocate(ReductionType type, Function fn);
  public ReductionFunctionInt(@Cast("gloo::ReductionType") int type, Function fn) { super((Pointer)null); allocate(type, fn); }
  private native void allocate(@Cast("gloo::ReductionType") int type, Function fn);

  public native ReductionType type();

  public native void call(IntPointer x, @Const IntPointer y, @Cast("size_t") long n);
  public native void call(IntBuffer x, @Const IntBuffer y, @Cast("size_t") long n);
  public native void call(int[] x, @Const int[] y, @Cast("size_t") long n);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy