# Function "dscalprod"

**URL:** <https://community.freefem.org/t/function-dscalprod/509>\
**Category:** General Discussion\
**Created:** [July 20, 2020, 8:34pm UTC](https://community.freefem.org/t/function-dscalprod/509 "2020-07-20T20:34:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [July 20, 2020, 8:34pm UTC](https://community.freefem.org/t/function-dscalprod/509/1 "2020-07-20T20:34:37Z")

</div>

Hi all,

After a while without updating FreeFem (around 3.62), I am trying to now trying to update my codes. In earlier version I was using the function `dscalprod` which seems not to exist anymore. I guess the syntax slightly changed but I cannot figure out how…  
Can anyone help me with this? (or am I missing something)

Thank you,  
Julien

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [July 20, 2020, 8:39pm UTC](https://community.freefem.org/t/function-dscalprod/509/2 "2020-07-20T20:39:49Z")

</div>

Salut Julien,  
Good to see you are updating, things have changed quite a bit since 3.62 😃  
Instead of using a partition of unity (stored as a `real[int]`), this step is now hidden using the syntax `A(u, v)`, where `A` is a `Mat` or `Mat<complex>`. See line 43 of [this](http://jolivet.perso.enseeiht.fr/FreeFem-tutorial/section_8/example4.edp.html#L43) example, which computes a L\_2 norm. Let me know if something is not clear to you.

---

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [July 20, 2020, 8:51pm UTC](https://community.freefem.org/t/function-dscalprod/509/3 "2020-07-20T20:51:07Z")

</div>

Salut Pierre, merci!  
It seems pretty clear. I’ll return to you if something unexpected shows up.
