I have a function signature like:
static public double[][] G2Sweep(int row1, int row2, double[][] mtx)
{
mtx = (float) mtx;
}
But I need to covert the double[][] matrix into float values. How is this done as the code can’t explicitly convert it?
No, you can’t convert double to float in place, especially for arrays. You need to create copy with correct type.