[Scilab-users] {EXT} Help for . operator

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Mon Jun 8 11:21:15 CEST 2020


Hello Pierre,

> De : Perrichon
> Envoyé : lundi 8 juin 2020 11:07
>
> I don't understand le role of the « point » operator '.'

The dot is used to have an element-wise operation.

The difference is when you work with matrices, e.g. the product * will make a matrix product

C = A*B -> C(i, j) = sum_k (A(i, k), B(k, j))

but .* will make the elementwise product

C = A.*B -> C(i, j) = A(i, j)*B(i, j)

See https://help.scilab.org/docs/6.1.0/en_US/dot.html

regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer


General
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



More information about the users mailing list