1 /*
  2  * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.  Oracle designates this
  8  * particular file as subject to the "Classpath" exception as provided
  9  * by Oracle in the LICENSE file that accompanied this code.
 10  *
 11  * This code is distributed in the hope that it will be useful, but WITHOUT
 12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14  * version 2 for more details (a copy is included in the LICENSE file that
 15  * accompanied this code).
 16  *
 17  * You should have received a copy of the GNU General Public License version
 18  * 2 along with this work; if not, write to the Free Software Foundation,
 19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20  *
 21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22  * or visit www.oracle.com if you need additional information or have any
 23  * questions.
 24  */
 25 
 26 package oracle.code.triton;
 27 
 28 import java.lang.reflect.Type;
 29 import java.lang.runtime.CodeReflection;
 30 import java.util.List;
 31 
 32 public class Triton {
 33     private Triton() {
 34     }
 35 
 36     public static int programId(@Constant int axis) {
 37         throw new UnsupportedOperationException();
 38     }
 39 
 40     public static Tensor arange(@Constant int start, @Constant int end) {
 41         throw new UnsupportedOperationException();
 42     }
 43 
 44     public static Tensor load(Tensor ptr, Tensor mask) {
 45         throw new UnsupportedOperationException();
 46     }
 47 
 48     public static void store(Tensor ptr, Tensor value, Tensor mask) {
 49         throw new UnsupportedOperationException();
 50     }
 51 
 52     public static Tensor broadcast(Object o, TensorType type) {
 53         throw new UnsupportedOperationException();
 54     }
 55 
 56     public static Tensor expand(Tensor a, int axis) {
 57         throw new UnsupportedOperationException();
 58     }
 59 
 60     public static Tensor zeros(Class<?> eType, int... shape)  {
 61         throw new UnsupportedOperationException();
 62     }
 63 
 64     public static TensorType joinShape(TensorType a, TensorType b) {
 65         throw new UnsupportedOperationException();
 66     }
 67 
 68     public static Tensor dot(Tensor a, Tensor b) {
 69         throw new UnsupportedOperationException();
 70     }
 71 
 72     // Arithmetic
 73 
 74     public static Tensor add(Number a, Number b) {
 75         throw new UnsupportedOperationException();
 76     }
 77 
 78     public static Tensor sub(Number a, Number b) {
 79         throw new UnsupportedOperationException();
 80     }
 81 
 82     public static Tensor mul(Number a, Number b) {
 83         throw new UnsupportedOperationException();
 84     }
 85 
 86     public static Tensor div(Number a, Number b) {
 87         throw new UnsupportedOperationException();
 88     }
 89 
 90     public static Tensor mod(Number a, Number b) {
 91         throw new UnsupportedOperationException();
 92     }
 93 
 94     public static Tensor and(Number a, Number b) {
 95         throw new UnsupportedOperationException();
 96     }
 97 
 98     public enum CompareKind {
 99         Equal,
100         LessThan,
101         LessThanOrEqual,
102         GreaterThan,
103         GreaterThanOrEqual
104     }
105 
106     public static Tensor compare(Number a, Number b, @Constant CompareKind ck) {
107         throw new UnsupportedOperationException();
108     }
109 
110     public static Tensor exp(Tensor a) {
111         throw new UnsupportedOperationException();
112     }
113 
114     public static int cdiv(Number x, Number div) {
115         throw new UnsupportedOperationException();
116     }
117 
118     // Conversions
119 
120     public static <T extends Number> T conv(Type t, T a) {
121         throw new UnsupportedOperationException();
122     }
123 
124     // Reductions
125 
126     public static Tensor max(Tensor a, @Constant int axis) {
127         throw new UnsupportedOperationException();
128     }
129 
130     public static Tensor sum(Tensor a, @Constant int axis) {
131         throw new UnsupportedOperationException();
132     }
133 }