Thx, nice. Is the fast way in Julia ? Paul
W dniu niedziela, 1 lutego 2015 17:18:03 UTC+1 użytkownik Andreas Noack napisał: > > This is cheaper: rand(4,4) - 5*I because 5I is a special type that doesn't > store all elements. > > 2015-02-01 11:03 GMT-05:00 paul analyst <paul.a...@mail.com <javascript:>> > : > >> I have somethink like this : >> >> rand(4,4).-eye(4,4)*5 >> >> Qestion : how to simpler subtracted from the diagonal value(5) , >> Without multiplying matrices .... I have great and I have to simplify >> the code. >> >> Paul >> > >