# Making broadcast work for own type

**URL:** <https://discourse.julialang.org/t/making-broadcast-work-for-own-type/7195>\
**Category:** General Usage\
**Tags:** broadcast\
**Created:** [November 20, 2017, 5:25pm UTC](https://discourse.julialang.org/t/making-broadcast-work-for-own-type/7195 "2017-11-20T17:25:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 20, 2017, 6:31pm UTC](https://discourse.julialang.org/t/making-broadcast-work-for-own-type/7195/5 "2017-11-20T18:31:37Z")

</div>

Even though the code changed a bit, most of this is still relevant:

> [@Broadcast for custom type](https://discourse.julialang.org/t/broadcast-for-custom-type/3497/):
>
> I am using v0.6, this is an MWE of a question I want to solve. I would like to make broadcast work for a custom type struct CongruentVector{Td,Tv} descriptor::Td vector::Tv end the following way: given a method ≅ with fallback ≅(a, b) = a == b I would test that all CongruentVector arguments to broadcast have descriptors that are ≅, then broadcast on their vectors and nothing else, ie every other argument would be treated as a “scalar”. The idea behind this interface is that it woul…

---

_[View the full topic](https://discourse.julialang.org/t/making-broadcast-work-for-own-type/7195)._
