return result;
}
public static ComplexDoubleMatrix concatVertically(ComplexDoubleMatrix A, ComplexDoubleMatrix B) {
if (A.columns != B.columns)
throw new SizeException("Matrices don't have same number of columns.");
ComplexDoubleMatrix result = new ComplexDoubleMatrix(A.rows + B.rows, A.columns);
for (int i = 0; i < A.columns; i++) {
NativeBlas.zcopy(A.rows, A.data, A.index(0, i), 1, result.data, result.index(0, i), 1);