52535455565758
public class Basic1DFactory extends BasicFactory { @Override public ByteMatrix createMatrix() { return new Basic1DByteMatrix(); }
58596061626364
} @Override public ByteMatrix createMatrix(int rows, int columns) { return new Basic1DByteMatrix(rows, columns); }
64656667686970
} @Override public ByteMatrix createMatrix(int rows, int columns, byte[] array) { return new Basic1DByteMatrix(rows, columns, array); }
70717273747576
} @Override public ByteMatrix createMatrix(byte[][] array) { return new Basic1DByteMatrix(array); }
76777879808182
} @Override public ByteMatrix createMatrix(ByteMatrix matrix) { return new Basic1DByteMatrix(matrix); }
82838485868788
} @Override public ByteMatrix createMatrix(MatrixSource source) { return new Basic1DByteMatrix(source); }
91929394959697
public ByteMatrix createConstantMatrix(int rows, int columns, byte value) { byte array[] = new byte[rows * columns]; Arrays.fill(array, value); return new Basic1DByteMatrix(rows, columns, array); }
103104105106107108109
for (int i = 0; i < rows * columns; i++) { array[i] = (byte)random.nextInt(); } return new Basic1DByteMatrix(rows, columns, array); }
119120121122123124125
array[i * size + j] = value; array[j * size + i] = value; } } return new Basic1DByteMatrix(size, size, array); }
125126127128129130131
} @Override public ByteMatrix createSquareMatrix(int size) { return new Basic1DByteMatrix(size, size); }