>...
>>Ok, why not Dot_Prod, this name has 8 characters and it has very clear
>>meaning. In C you can use other names through the command #define, but
>>in fortran it is not so easy, some times you need to use some functions
>>many times and if it is has very long name and also you have to repeat
>>useless information like in the case of Dot_Product(x,x) your code could
>>have a lot of characters that could be avoided.
>
>Sum(X*X)
>
>>Also the Dot_Product function could accept more than two vectors for
>>example: Dot_Product(x,y,z)
>...
>This means SUM(X*Y)*Z or SUM(X*Y*Z) or what?
>
Then what's the use of dot_product? What is the advantages of using
dot_product over sum? Can we say that dot_product is a redundant function?
S. Yuan
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|