Kronecker product based fractals: Difference between revisions

m
(Added Kotlin)
Line 562:
private static void test1() {
// Create the matrix.
final int[][] m = new{{0, int[3][];1, // 3 by 30},
m[0] = new int[] {01, 1, 01};,
m[1] = new int[] {10, 1, 10}};
m[2] = new int[]{0, 1, 0};
// Run the test.
test(m, 4);
Line 575 ⟶ 574:
private static void test2() {
// Create the matrix.
final int[][] m = new{{1, int[3][];1, // 3 by 31},
m[0] = new int[] {1, 10, 1};,
m[1] = new int[] {1, 01, 1}};
m[2] = new int[]{1, 1, 1};
// Run the test.
test(m, 4);
Line 588 ⟶ 586:
private static void test3() {
// Create the matrix.
final int[][] m = new{{1, int[3][];0, // 3 by 31},
m[0] = new int[] {1, 0, 1};,
m[1] = new int[]{1, {0, 1, 0}};
m[2] = new int[]{0, 1, 0};
// Run the test.
test(m, 4);
Anonymous user