Exemplo n.º 1
0
  // NslDouble4
  public static double[][][][] eval(
      double[][][][] dest,
      NslDouble4 num,
      int start1,
      int start2,
      int start3,
      int start4,
      int end1,
      int end2,
      int end3,
      int end4) {
    double[][][][] _data = num.get();

    if (start1 < 0) start1 = 0;
    if (start2 < 0) start2 = 0;
    if (start3 < 0) start3 = 0;
    if (start4 < 0) start4 = 0;
    if (end1 > _data.length) end1 = _data.length;
    if (end2 > _data[0].length) end2 = _data[0].length;
    if (end3 > _data[0][0].length) end3 = _data[0][0].length;
    if (end4 > _data[0][0][0].length) end4 = _data[0][0][0].length;

    int length1 = end1 - start1 + 1;
    int length2 = end2 - start2 + 1;
    int length3 = end3 - start3 + 1;
    int length4 = end4 - start4 + 1;

    return eval(dest, _data, start1, start2, start3, start4, end1, end2, end3, end4);
  }
 public double[][][][] eval(double[][][][] dest, NslDouble4 a, NslDouble4 b) {
   return eval(dest, a.getdouble4(), b.getdouble4());
 }
 public double[][][][] eval(double a, NslDouble4 b) {
   return eval(a, b.getdouble4());
 }
 public double[][][][] eval(NslDouble4 a, NslDouble4 b) {
   return eval(a.getdouble4(), b.getdouble4());
 }
 public double[][][][] eval(NslDouble4 a, double b) {
   return eval(a.getdouble4(), b);
 }