Internal helper method to return the magnitude array. The caller is not
supposed to modify the returned array.
507425
private int[] getMagnitudeArray() {
        if (offset > 0 || value.length != intLen)
            return Arrays.copyOfRange(value, offset, offset + intLen);
        return value;
    }
1218237
def magnitude(self):
        
        return math.sqrt(sum(t**2 for t in self._terms.values()))
1115487
public double[][] getArray()
    {
        double[][] result = new double[getM()][];
        
        for ( int m = 0; m < getM(); m++ )
        {
           result[m] = new double[ getN() ];

           for ( int n = 0; n < getN(); n++ )
           {               
               result[m][n] = getReal(m,n);
           }
        }
        return result;
    }
277715
def get_magnitude_squared(self):
        """"""
        return self.x*self.x + self.y*self.y
572299
public function magnitude(): Utility
    {
        if ($this->number == 0) {
            $magnitude = 0;
        } else {
            $magnitude = floor(log10(abs($this->number)));
        }

        return new static($magnitude);
    }
630747
def _get_magnitude_vector_properties(catalogue, config):
    ''''''

    mmin = config.get('input_mmin', np.min(catalogue['magnitude']))
    neq = np.float(np.sum(catalogue['magnitude'] >= mmin - 1.E-7))
    return neq, mmin
650564
public int[] extractUShortArray() {
        final short[] argOut = element.value.ushort_att_value();
        final int[] val = new int[argOut.length];
        for (int i = 0; i < argOut.length; i++) {
            val[i] = 0xFFFF & argOut[i];
        }
        return val;
    }
42936
public INDArray[] asArray() {
        val val = map.values();
        val res = new INDArray[val.size()];
        int cnt = 0;
        for (val v: val)
            res[cnt++] = v;

        return res;
    }
402229
def get_dimension_array(array):
    
    if all(isinstance(el, list) for el in array):
        result = [len(array), len(max([x for x in array], key=len,))]

    # elif array and isinstance(array, list):
    else:
        result = [len(array), 1]

    return result
413231
def get_array_size(self):
        """"""
        match = re.search(r"(?<=\[)\d+(?=\])", self.get_address())
        return int(match.group(0))
1338773
int[] getScaledData(int[] srcImage)
    {
        final int[] dstImage = new int[srcImage.length * SCALE * SCALE];

        for (int y = 0; y < height; y++)
        {
            for (int x = 0; x < width; x++)
            {
                process(srcImage, dstImage, x, y);
            }
        }

        return dstImage;
    }
482855
public double[] getTrimmedInternalArray() {
        if (internalArray.length == lastIndex + 1) {
            return internalArray;
        }
        double[] newArray = new double[lastIndex + 1];
        System.arraycopy(internalArray, 0, newArray, 0, newArray.length);
        return newArray;
    }
468795
public int getArrayLength() throws ReflectorException  {
		
		if(object == null) {
			logger.error("object is null: did you specify it using the 'inspect()' method?");
			throw new ReflectorException("object is null: did you specify it using the 'inspect()' method?");
		}
		
		int length = 0;
		if(object.getClass().isArray()) {
			length = Array.getLength(object);
		} else if (object instanceof List<?>){
			length = ((List<?>)object).size();
		} else {
			throw new ReflectorException("object is not an array or a list");
		}
		return length;
	}
616924
function (arr) {
      for (var i = 1; i < arr.length; i++) {
        var tmp = arr[i],
          j = i;
        while (arr[j - 1] && parseInt(arr[j - 1].width, 10) > parseInt(tmp.width, 10)) {
          arr[j] = arr[j - 1];
          --j;
        }
        arr[j] = tmp;
      }

      return arr;
    }
889891
@Pure
	@SuppressWarnings("checkstyle:magicnumber")
	public double getScale() {
		final double[] tmpScale = new double[3];
		final double[] tmpRot = new double[9];
		getScaleRotate2x2(tmpScale, tmpRot);
		return MathUtil.max(tmpScale);
	}
233207
public double[] toNativeArray() {
        final double[] arr = new double[getNumImplicitEntries()];
        iterate(new FnIntDoubleToVoid() {
            @Override
            public void call(int idx, double val) {
                arr[idx] = val;
            }
        });
        return arr;
    }
380084
@Pure
	@Inline(value = "AssertMessages.tooSmallArrayParameter(0, $1, $2)", imported = {AssertMessages.class})
	public static String tooSmallArrayParameter(int currentSize, int expectedSize) {
		return tooSmallArrayParameter(0, currentSize, expectedSize);
	}