Basis(1:n) and Basis

Numerical methods and mathematical models of Elmer
Post Reply
hamed
Posts: 110
Joined: 12 Oct 2009, 18:28

Basis(1:n) and Basis

Post by hamed »

Hello Elmer
What is the difference between SUM( LoadVector(i,1:n)*Basis(1:n) ) and SUM( LoadVector(i,1:n)*Basis )?
Regards, Hamed
raback
Site Admin
Posts: 4823
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Basis(1:n) and Basis

Post by raback »

Hi Hamed

There is no difference. I think that in the expression "SUM( LoadVector(i,1:n)*Basis )" the size of Basis is implicitely known to be n and hence the range is not given.

-Peter
Post Reply