Lines Matching refs:n
202 private static int[] linearWithParameter(int n) { in linearWithParameter() argument
203 int[] x = new int[n]; in linearWithParameter()
204 for (int i = 0; i < n; i++) { in linearWithParameter()
217 int n = x.length; in linearCopy() local
218 int y[] = new int[n]; in linearCopy()
219 for (int i = 0; i < n; i++) { in linearCopy()
233 int n = x.length / 2; in linearByTwo() local
235 for (int i = 0; i < n; i++) { in linearByTwo()
566 private static void linearTriangularOnTwoArrayLengths(int n) { in linearTriangularOnTwoArrayLengths() argument
567 int[] a = new int[n]; in linearTriangularOnTwoArrayLengths()
576 verifyTriangular(a, b, i, n); in linearTriangularOnTwoArrayLengths()
587 private static void linearTriangularOnOneArrayLength(int n) { in linearTriangularOnOneArrayLength() argument
588 int[] a = new int[n]; in linearTriangularOnOneArrayLength()
597 verifyTriangular(a, b, i, n); in linearTriangularOnOneArrayLength()
608 private static void linearTriangularOnParameter(int n) { in linearTriangularOnParameter() argument
609 int[] a = new int[n]; in linearTriangularOnParameter()
610 for (int i = 0; i < n; i++) { in linearTriangularOnParameter()
618 verifyTriangular(a, b, i, n); in linearTriangularOnParameter()
631 private static void linearTriangularStrictLower(int n) { in linearTriangularStrictLower() argument
632 int[] a = new int[n]; in linearTriangularStrictLower()
633 for (int i = 0; i < n; i++) { in linearTriangularStrictLower()
640 for (int j = i; j < n; j++) { in linearTriangularStrictLower()
643 for (int j = n - 1; j >= i; j--) { in linearTriangularStrictLower()
659 private static void linearTriangularStrictUpper(int n) { in linearTriangularStrictUpper() argument
660 int[] a = new int[n]; in linearTriangularStrictUpper()
661 for (int i = 0; i < n; i++) { in linearTriangularStrictUpper()
668 for (int j = i + 1; j < n; j++) { in linearTriangularStrictUpper()
671 for (int j = n - 1; j >= i + 1; j--) { in linearTriangularStrictUpper()
679 private static void verifyTriangular(int[] a, int[] b, int m, int n) { in verifyTriangular() argument
680 expectEquals(n, a.length); in verifyTriangular()
681 for (int i = 0, k = m; i < n; i++) { in verifyTriangular()
693 int n = a.length; in verifyTriangular() local
694 for (int i = 0; i < n; i++) { in verifyTriangular()
695 expectEquals(a[i], n + n); in verifyTriangular()
761 for (int n = 0; n < 32; n++) { in main()
762 int[] r = linearWithParameter(n); in main()
763 expectEquals(n, r.length); in main()
764 for (int i = 0; i < n; i++) { in main()