public static Matrix <Td> SetByCoordParallelX <Td>( this Matrix <Td> mat, Func <long, long, Td> x_y_valueFun) { Parallel.For(mat.FX, mat.EX, x => mat.SubYVectorWindow(x).SetByCoord(y => x_y_valueFun(x, y))); return(mat); }
public static Matrix <Td> SetByCoordParallelX <Td>( this Matrix <Td> mat, Func <long, long, Td> x_y_valueFun) { Parallel.For(mat.FX, mat.EX, x => mat.SubYVectorWindow(x).SetByCoord(y => x_y_valueFun(x, y))); return(mat); }