# Initializing a matrix\<complex\> with matrix

**URL:** <https://community.freefem.org/t/initializing-a-matrix-complex-with-matrix/1279>\
**Category:** General Discussion\
**Created:** [October 24, 2021, 3:14pm UTC](https://community.freefem.org/t/initializing-a-matrix-complex-with-matrix/1279 "2021-10-24T15:14:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenzoAudibert](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/lorenzoaudibert/32/789_2.png) [@LorenzoAudibert](https://community.freefem.org/u/LorenzoAudibert)\
**Post date:** [October 24, 2021, 3:14pm UTC](https://community.freefem.org/t/initializing-a-matrix-complex-with-matrix/1279/1 "2021-10-24T15:14:16Z")

</div>

Hello eveyone,

I could not find the proper way to put a matrix into a matrix complex.

Thank you for your help,  
Lorenzo

---

<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:** [October 24, 2021, 3:31pm UTC](https://community.freefem.org/t/initializing-a-matrix-complex-with-matrix/1279/2 "2021-10-24T15:31:46Z")

</div>

```auto
matrix A = eye(10, 10);
matrix<complex> Ac = A;

```
