c# - converting type double[][] to float -


i have function signature like:

static public double[][] g2sweep(int row1, int row2, double[][] mtx) {     mtx = (float) mtx; } 

but need covert double[][] matrix float values. how done code can't explicitly convert it?

no, can't convert double float in place, arrays. need create copy correct type.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -