# Transfer Float64 matrix to double \*\*arg in C

**URL:** <https://discourse.julialang.org/t/transfer-float64-matrix-to-double-arg-in-c/1463>\
**Category:** General Usage\
**Created:** [January 13, 2017, 2:53pm UTC](https://discourse.julialang.org/t/transfer-float64-matrix-to-double-arg-in-c/1463 "2017-01-13T14:53:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [January 13, 2017, 3:41pm UTC](https://discourse.julialang.org/t/transfer-float64-matrix-to-double-arg-in-c/1463/4 "2017-01-13T15:41:17Z")

</div>

Note that if you can change the C code, you should change it to a multi-dimensional C array and you don’t need to compute the index yourself.

See either solution at [Redirecting to Google Groups](https://groups.google.com/forum/#!topic/julia-users/EK9oNzzaoAk) or [Calling a c-function that returns a 2-dimensional array - #8 by yuyichao](https://discourse.julialang.org/t/calling-a-c-function-that-returns-a-2-dimensional-array/855/8)

Be careful about column/row ordering…

Somehow this question comes up much more often than I though…

---

_[View the full topic](https://discourse.julialang.org/t/transfer-float64-matrix-to-double-arg-in-c/1463)._
