<p dir="auto">Hi,<br>
would be great if one could pass arguments to <code class="notranslate">issymmetric</code>, which specifies the absolut and/or relative tolerance between the upper and lower triangle, similar to <code class="notranslate">isapprox(x,y; atol=..., rtol=...)</code>.<br>
Thanks!</p>
<p dir="auto">I was expecting the following code print two <code class="notranslate">true</code>s.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using LinearAlgebra
siz = 8
base_space = qr(randn(Float64, siz, siz)).Q
phases = rand(siz)
signs = Diagonal(phases)
A = base_space*signs*base_space'
println(A ≈ A')
println(ishermitian(A))"><pre class="notranslate"><code class="notranslate">using LinearAlgebra
siz = 8
base_space = qr(randn(Float64, siz, siz)).Q
phases = rand(siz)
signs = Diagonal(phases)
A = base_space*signs*base_space'
println(A ≈ A')
println(ishermitian(A))
</code></pre></div>
<p dir="auto">Instead, I get <code class="notranslate">true</code> and <code class="notranslate">false</code>.</p>
<p dir="auto">The <code class="notranslate">ishermitian</code> turns out using <code class="notranslate">==</code>. Isn't it better to use <code class="notranslate">≈</code> or add an <code class="notranslate">atol</code> keyword parameter?<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/JuliaLang/julia/blob/4498d27c3c3e11effdfdfdce822d025079f01a0a/stdlib/LinearAlgebra/src/generic.jl#L971">julia/stdlib/LinearAlgebra/src/generic.jl</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 971
      in
      <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/4498d27c3c3e11effdfdfdce822d025079f01a0a">4498d27</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L971" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="971"></td>
          <td id="LC971" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">function</span> <span class="pl-en">ishermitian</span>(A<span class="pl-k">::</span><span class="pl-c1">AbstractMatrix</span>) </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>