blob: bc151f1c67a26a8ce9e6ed677e79783f5c317722 [file] [log] [blame]
/*
* Copyright (C) 2011-2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This file is auto-generated. DO NOT MODIFY!
* The source Renderscript file: reduce_general_input.rs
*/
package input;
import android.renderscript.*;
import input.reduce_general_inputBitCode;
/**
* @hide
*/
public class ScriptC_reduce_general_input extends ScriptC {
private static final String __rs_resource_name = "reduce_general_input";
// Constructor
public ScriptC_reduce_general_input(RenderScript rs) {
super(rs,
__rs_resource_name,
reduce_general_inputBitCode.getBitCode32(),
reduce_general_inputBitCode.getBitCode64());
mRSLocal = rs;
__I32 = Element.I32(rs);
__F16 = Element.F16(rs);
__F16_2 = Element.F16_2(rs);
__F16_4 = Element.F16_4(rs);
__F32 = Element.F32(rs);
__F32_2 = Element.F32_2(rs);
__F32_4 = Element.F32_4(rs);
__F64 = Element.F64(rs);
__F64_2 = Element.F64_2(rs);
__F64_4 = Element.F64_4(rs);
__I8 = Element.I8(rs);
__I8_2 = Element.I8_2(rs);
__I8_4 = Element.I8_4(rs);
__I16 = Element.I16(rs);
__I16_2 = Element.I16_2(rs);
__I16_4 = Element.I16_4(rs);
__I32_2 = Element.I32_2(rs);
__I32_4 = Element.I32_4(rs);
__I64 = Element.I64(rs);
__I64_2 = Element.I64_2(rs);
__I64_4 = Element.I64_4(rs);
__U8 = Element.U8(rs);
__U8_2 = Element.U8_2(rs);
__U8_4 = Element.U8_4(rs);
__U16 = Element.U16(rs);
__U16_2 = Element.U16_2(rs);
__U16_4 = Element.U16_4(rs);
__U32 = Element.U32(rs);
__U32_2 = Element.U32_2(rs);
__U32_4 = Element.U32_4(rs);
__U64 = Element.U64(rs);
__U64_2 = Element.U64_2(rs);
__U64_4 = Element.U64_4(rs);
__BOOLEAN = Element.BOOLEAN(rs);
__ScriptField_MyStruct = ScriptField_MyStruct.createElement(rs);
}
private Element __BOOLEAN;
private Element __F16;
private Element __F16_2;
private Element __F16_4;
private Element __F32;
private Element __F32_2;
private Element __F32_4;
private Element __F64;
private Element __F64_2;
private Element __F64_4;
private Element __I16;
private Element __I16_2;
private Element __I16_4;
private Element __I32;
private Element __I32_2;
private Element __I32_4;
private Element __I64;
private Element __I64_2;
private Element __I64_4;
private Element __I8;
private Element __I8_2;
private Element __I8_4;
private Element __ScriptField_MyStruct;
private Element __U16;
private Element __U16_2;
private Element __U16_4;
private Element __U32;
private Element __U32_2;
private Element __U32_4;
private Element __U64;
private Element __U64_2;
private Element __U64_4;
private Element __U8;
private Element __U8_2;
private Element __U8_4;
private RenderScript mRSLocal;
// To obtain the result, invoke get(), which blocks
// until the asynchronously-launched operation has completed.
public static class result_int {
public int get() {
if (!mGotResult) {
int[] outArray = new int[1];
mOut.copyTo(outArray);
mResult = outArray[0];
mOut.destroy();
mOut = null; // make Java object eligible for garbage collection
if (mTempIns != null) {
for (Allocation tempIn : mTempIns) {
tempIn.destroy();
}
mTempIns = null; // make Java objects eligible for garbage collection
}
mGotResult = true;
}
return mResult;
}
private result_int(Allocation out) {
mTempIns = null;
mOut = out;
mGotResult = false;
}
private Allocation[] mTempIns;
private Allocation mOut;
private boolean mGotResult;
private int mResult;
}
private final static int mExportReduceIdx_my_half_0 = 0;
// in1 = "in"
public result_int reduce_my_half_0(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_0(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_0(Allocation ain1) {
return reduce_my_half_0(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_0(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_0, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_1 = 1;
// in1 = "in"
public result_int reduce_my_half_1(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_1(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_1(Allocation ain1) {
return reduce_my_half_1(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_1(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_1, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_2 = 2;
// in1 = "in"
public result_int reduce_my_half_2(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_2(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_2(Allocation ain1) {
return reduce_my_half_2(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_2(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_2, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_3 = 3;
// in1 = "in"
public result_int reduce_my_half_3(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_3(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_3(Allocation ain1) {
return reduce_my_half_3(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_3(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_3, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_4 = 4;
// in1 = "in"
public result_int reduce_my_half_4(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_4(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_4(Allocation ain1) {
return reduce_my_half_4(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_4(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_4, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_5 = 5;
// in1 = "in"
public result_int reduce_my_half_5(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_5(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_5(Allocation ain1) {
return reduce_my_half_5(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_5(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_5, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_6 = 6;
// in1 = "in"
public result_int reduce_my_half_6(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_6(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_6(Allocation ain1) {
return reduce_my_half_6(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_6(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_6, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_7 = 7;
// in1 = "in"
public result_int reduce_my_half_7(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_7(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_7(Allocation ain1) {
return reduce_my_half_7(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_7(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_7, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_8 = 8;
// in1 = "in"
public result_int reduce_my_half_8(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_8(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_8(Allocation ain1) {
return reduce_my_half_8(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_8(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_8, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_9 = 9;
// in1 = "in"
public result_int reduce_my_half_9(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_9(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_9(Allocation ain1) {
return reduce_my_half_9(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_9(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_9, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_10 = 10;
// in1 = "in"
public result_int reduce_my_half_10(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_10(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_10(Allocation ain1) {
return reduce_my_half_10(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_10(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_10, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_11 = 11;
// in1 = "in"
public result_int reduce_my_half_11(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_11(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_11(Allocation ain1) {
return reduce_my_half_11(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_11(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_11, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_12 = 12;
// in1 = "in"
public result_int reduce_my_half_12(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_12(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_12(Allocation ain1) {
return reduce_my_half_12(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_12(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_12, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_13 = 13;
// in1 = "in"
public result_int reduce_my_half_13(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_13(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_13(Allocation ain1) {
return reduce_my_half_13(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_13(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_13, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_14 = 14;
// in1 = "in"
public result_int reduce_my_half_14(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_14(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_14(Allocation ain1) {
return reduce_my_half_14(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_14(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_14, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half_15 = 15;
// in1 = "in"
public result_int reduce_my_half_15(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half_15(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half in"
public result_int reduce_my_half_15(Allocation ain1) {
return reduce_my_half_15(ain1, null);
}
// ain1 = "half in"
public result_int reduce_my_half_15(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16)) {
throw new RSRuntimeException("Type mismatch with F16!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half_15, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_0 = 16;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_0(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_0(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_0(Allocation ain1) {
return reduce_my_half2_0(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_0(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_0, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_1 = 17;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_1(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_1(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_1(Allocation ain1) {
return reduce_my_half2_1(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_1(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_1, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_2 = 18;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_2(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_2(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_2(Allocation ain1) {
return reduce_my_half2_2(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_2(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_2, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_3 = 19;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_3(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_3(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_3(Allocation ain1) {
return reduce_my_half2_3(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_3(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_3, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_4 = 20;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_4(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_4(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_4(Allocation ain1) {
return reduce_my_half2_4(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_4(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_4, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_5 = 21;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_5(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_5(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_5(Allocation ain1) {
return reduce_my_half2_5(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_5(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_5, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_6 = 22;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_6(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_6(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_6(Allocation ain1) {
return reduce_my_half2_6(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_6(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_6, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_7 = 23;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_7(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_7(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_7(Allocation ain1) {
return reduce_my_half2_7(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_7(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_7, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_8 = 24;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_8(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_8(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_8(Allocation ain1) {
return reduce_my_half2_8(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_8(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_8, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_9 = 25;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_9(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_9(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_9(Allocation ain1) {
return reduce_my_half2_9(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_9(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_9, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_10 = 26;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_10(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_10(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_10(Allocation ain1) {
return reduce_my_half2_10(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_10(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_10, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_11 = 27;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_11(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_11(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_11(Allocation ain1) {
return reduce_my_half2_11(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_11(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_11, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_12 = 28;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_12(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_12(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_12(Allocation ain1) {
return reduce_my_half2_12(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_12(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_12, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_13 = 29;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_13(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_13(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_13(Allocation ain1) {
return reduce_my_half2_13(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_13(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_13, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_14 = 30;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_14(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_14(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_14(Allocation ain1) {
return reduce_my_half2_14(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_14(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_14, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half2_15 = 31;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_half2_15(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half2_15(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half2 in"
public result_int reduce_my_half2_15(Allocation ain1) {
return reduce_my_half2_15(ain1, null);
}
// ain1 = "half2 in"
public result_int reduce_my_half2_15(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_2)) {
throw new RSRuntimeException("Type mismatch with F16_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half2_15, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_0 = 32;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_0(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_0(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_0(Allocation ain1) {
return reduce_my_half4_0(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_0(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_0, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_1 = 33;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_1(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_1(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_1(Allocation ain1) {
return reduce_my_half4_1(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_1(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_1, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_2 = 34;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_2(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_2(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_2(Allocation ain1) {
return reduce_my_half4_2(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_2(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_2, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_3 = 35;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_3(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_3(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_3(Allocation ain1) {
return reduce_my_half4_3(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_3(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_3, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_4 = 36;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_4(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_4(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_4(Allocation ain1) {
return reduce_my_half4_4(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_4(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_4, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_5 = 37;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_5(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_5(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_5(Allocation ain1) {
return reduce_my_half4_5(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_5(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_5, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_6 = 38;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_6(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_6(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_6(Allocation ain1) {
return reduce_my_half4_6(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_6(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_6, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_7 = 39;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_7(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_7(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_7(Allocation ain1) {
return reduce_my_half4_7(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_7(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_7, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_8 = 40;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_8(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_8(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_8(Allocation ain1) {
return reduce_my_half4_8(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_8(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_8, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_9 = 41;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_9(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_9(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_9(Allocation ain1) {
return reduce_my_half4_9(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_9(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_9, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_10 = 42;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_10(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_10(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_10(Allocation ain1) {
return reduce_my_half4_10(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_10(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_10, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_11 = 43;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_11(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_11(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_11(Allocation ain1) {
return reduce_my_half4_11(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_11(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_11, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_12 = 44;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_12(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_12(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_12(Allocation ain1) {
return reduce_my_half4_12(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_12(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_12, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_13 = 45;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_13(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_13(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_13(Allocation ain1) {
return reduce_my_half4_13(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_13(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_13, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_14 = 46;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_14(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_14(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_14(Allocation ain1) {
return reduce_my_half4_14(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_14(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_14, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_half4_15 = 47;
// in1 = "in", flattened 4-vectors
public result_int reduce_my_half4_15(short[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 4 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 4 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F16_4, in1.length / 4);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_half4_15(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "half4 in"
public result_int reduce_my_half4_15(Allocation ain1) {
return reduce_my_half4_15(ain1, null);
}
// ain1 = "half4 in"
public result_int reduce_my_half4_15(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F16_4)) {
throw new RSRuntimeException("Type mismatch with F16_4!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_half4_15, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_0 = 48;
// in1 = "in"
public result_int reduce_my_float_0(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_0(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_0(Allocation ain1) {
return reduce_my_float_0(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_0(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_0, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_1 = 49;
// in1 = "in"
public result_int reduce_my_float_1(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_1(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_1(Allocation ain1) {
return reduce_my_float_1(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_1(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_1, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_2 = 50;
// in1 = "in"
public result_int reduce_my_float_2(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_2(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_2(Allocation ain1) {
return reduce_my_float_2(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_2(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_2, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_3 = 51;
// in1 = "in"
public result_int reduce_my_float_3(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_3(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_3(Allocation ain1) {
return reduce_my_float_3(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_3(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_3, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_4 = 52;
// in1 = "in"
public result_int reduce_my_float_4(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_4(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_4(Allocation ain1) {
return reduce_my_float_4(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_4(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_4, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_5 = 53;
// in1 = "in"
public result_int reduce_my_float_5(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_5(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_5(Allocation ain1) {
return reduce_my_float_5(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_5(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_5, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_6 = 54;
// in1 = "in"
public result_int reduce_my_float_6(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_6(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_6(Allocation ain1) {
return reduce_my_float_6(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_6(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_6, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_7 = 55;
// in1 = "in"
public result_int reduce_my_float_7(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_7(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_7(Allocation ain1) {
return reduce_my_float_7(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_7(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_7, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_8 = 56;
// in1 = "in"
public result_int reduce_my_float_8(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_8(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_8(Allocation ain1) {
return reduce_my_float_8(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_8(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_8, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_9 = 57;
// in1 = "in"
public result_int reduce_my_float_9(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_9(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_9(Allocation ain1) {
return reduce_my_float_9(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_9(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_9, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_10 = 58;
// in1 = "in"
public result_int reduce_my_float_10(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_10(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_10(Allocation ain1) {
return reduce_my_float_10(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_10(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_10, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_11 = 59;
// in1 = "in"
public result_int reduce_my_float_11(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_11(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_11(Allocation ain1) {
return reduce_my_float_11(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_11(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_11, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_12 = 60;
// in1 = "in"
public result_int reduce_my_float_12(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_12(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_12(Allocation ain1) {
return reduce_my_float_12(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_12(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_12, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_13 = 61;
// in1 = "in"
public result_int reduce_my_float_13(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_13(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_13(Allocation ain1) {
return reduce_my_float_13(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_13(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_13, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_14 = 62;
// in1 = "in"
public result_int reduce_my_float_14(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_14(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_14(Allocation ain1) {
return reduce_my_float_14(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_14(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_14, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float_15 = 63;
// in1 = "in"
public result_int reduce_my_float_15(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32, in1.length);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float_15(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float in"
public result_int reduce_my_float_15(Allocation ain1) {
return reduce_my_float_15(ain1, null);
}
// ain1 = "float in"
public result_int reduce_my_float_15(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32)) {
throw new RSRuntimeException("Type mismatch with F32!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float_15, new Allocation[]{ain1}, aout, sc);
return new result_int(aout);
}
private final static int mExportReduceIdx_my_float2_0 = 64;
// in1 = "in", flattened 2-vectors
public result_int reduce_my_float2_0(float[] in1) {
// Verify that "in1" is non-null.
if (in1 == null) {
throw new RSIllegalArgumentException("Array \"in1\" is null!");
}
// Verify that the array length is a multiple of the vector size.
if (in1.length % 2 != 0) {
throw new RSIllegalArgumentException("Array \"in1\" is not a multiple of 2 in length!");
}
Allocation ain1 = Allocation.createSized(mRSLocal, __F32_2, in1.length / 2);
ain1.setAutoPadding(true);
ain1.copyFrom(in1);
result_int result = reduce_my_float2_0(ain1, null);
result.mTempIns = new Allocation[]{ain1};
return result;
}
// ain1 = "float2 in"
public result_int reduce_my_float2_0(Allocation ain1) {
return reduce_my_float2_0(ain1, null);
}
// ain1 = "float2 in"
public result_int reduce_my_float2_0(Allocation ain1, Script.LaunchOptions sc) {
// check ain1
if (!ain1.getType().getElement().isCompatible(__F32_2)) {
throw new RSRuntimeException("Type mismatch with F32_2!");
}
Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
aout.setAutoPadding(true);
reduce(mExportReduceIdx_my_float2_0, new Allocation[]{ain1}, aout, sc);