public Matrix BlendAll(Matrix M, Matrix[] W, float[] w, int length) { System.IntPtr[] ptr = new System.IntPtr[length]; for (int i = 0; i < length; i++) { ptr[i] = W[i].Ptr; } Eigen.BlendAll(M.Ptr, ptr, w, length); return(M); }