# \#symmetric

**URL:** https://discourse.julialang.org/tag/symmetric/1767.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to update a symmetric matrix respecting API boundaries?](https://discourse.julialang.org/t/how-to-update-a-symmetric-matrix-respecting-api-boundaries/132246)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 8\
**Last updated:** [September 11, 2025, 4:23pm UTC](https://discourse.julialang.org/t/how-to-update-a-symmetric-matrix-respecting-api-boundaries/132246 "2025-09-11T16:23:22Z")

</div>

Suppose I have a symmetric matrix H, and I would like to update it in place. For the purposes of this MWE, the update is adding f(i,j) to elements, based on index. How can I do this while respecting API boundaries? seti…

---

## [Why do we need the \`T\` in Symmetric{T, S}?](https://discourse.julialang.org/t/why-do-we-need-the-t-in-symmetric-t-s/128858)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 16\
**Last updated:** [May 10, 2025, 12:59am UTC](https://discourse.julialang.org/t/why-do-we-need-the-t-in-symmetric-t-s/128858 "2025-05-10T00:59:48Z")

</div>

I am a bit curious about the question in the title. Since it is unanswered in the docstring, I list its definition as a reference. # Symmetric and Hermitian matrices struct Symmetric{T,S\<:AbstractMatrix{\<:T}} \<: Abstrac…

---

## [Retaining the property of Symmetric?](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [May 9, 2025, 7:20am UTC](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437 "2025-05-09T07:20:29Z")

</div>

It doesn’t keep the Symmetric property import JuMP, Gurobi, LinearAlgebra model = JuMP.Model(Gurobi.Optimizer) JuMP.@variable(model, X\[1:2, 1:2\] \>= 0, Symmetric) JuMP.optimize!(model) Xt = JuMP.value.(X) # ⚠️ Can this b…
