Ejemplo n.º 1
0
 public static double[] eval(NslDouble2 _data, int i) {
   int[] sizes = _data.getSizes();
   int size1 = sizes[0];
   int size2 = sizes[1];
   double[] dest = new double[size2];
   return (eval(dest, _data, i));
 }
Ejemplo n.º 2
0
  public static double[][] eval(
      double[][] dest, NslDouble2 num, int start1, int start2, int end1, int end2) {

    double[][] _data = num.get();

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

    return eval(dest, _data, start1, start2, end1, end2);
  }
Ejemplo n.º 3
0
  public static double[][] eval(NslDouble2 num, int start1, int start2, int end1, int end2) {

    double[][] _data = num.get();

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

    int length1 = end1 - start1 + 1;
    int length2 = end2 - start2 + 1;

    return eval(new double[length1][length2], _data, start1, start2, end1, end2);
  }
 public double[][] eval(double[][] dest, NslDouble2 a, NslDouble2 b) {
   return eval(dest, a.getdouble2(), b.getdouble2());
 }
 public double[][] eval(NslDouble2 a, NslDouble2 b) {
   return eval(a.getdouble2(), b.getdouble2());
 }
 public double[][] eval(double a, NslDouble2 b) {
   return eval(a, b.getdouble2());
 }
 public double[][] eval(NslDouble2 a, double b) {
   return eval(a.getdouble2(), b);
 }
Ejemplo n.º 8
0
 // NslDouble 2d NslNumeric
 public static double[] eval(double[] dest, NslDouble2 _data, int i) {
   dest = _data.getdouble1(i);
   return dest;
 }