"Dmitrey Yershov" <pierrevanstulov@mail.ru> wrote in message > > Thank you very VERY much, Bruno! Your procedure works fast enough to solve my problem and gives proper results (at least by sight for 3 dimensions)!
You could further optimize the code by replacing the for-loop of V*w with James's MTIMESX