Skip to content

Commit 6330c2f

Browse files
committed
deploy: 51647ae
1 parent 8399665 commit 6330c2f

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

index.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
<div class="head">
536536
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
537537
<h1 class="p-name no-ref" id="title">Binary Sparse Format Specification Version 0.1</h1>
538-
<p id="w3c-state"><a href="https://www.w3.org/standards/types#UD">Unofficial Proposal Draft</a>, <time class="dt-updated" datetime="2024-03-19">19 March 2024</time></p>
538+
<p id="w3c-state"><a href="https://www.w3.org/standards/types#UD">Unofficial Proposal Draft</a>, <time class="dt-updated" datetime="2024-05-07">7 May 2024</time></p>
539539
<details open>
540540
<summary>More details about this document</summary>
541541
<div data-fill-with="spec-metadata">
@@ -640,6 +640,15 @@ <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
640640
<li><a href="#skew_symmetric_upper_structure"><span class="secno">3.7.1.6</span> <span class="content">skew_symmetric_upper</span></a>
641641
</ol>
642642
</ol>
643+
<li>
644+
<a href="#key_attributes"><span class="secno">3.8</span> <span class="content">Attributes</span></a>
645+
<ol class="toc">
646+
<li>
647+
<a href="#defined-attributes"><span class="secno">3.8.1</span> <span class="content">Defined Attributes</span></a>
648+
<ol class="toc">
649+
<li><a href="#number_of_diagonal_elements_attributes"><span class="secno">3.8.1.1</span> <span class="content">number_of_diagonal_elements</span></a>
650+
</ol>
651+
</ol>
643652
</ol>
644653
<li>
645654
<a href="#binary_container"><span class="secno">4</span> <span class="content">Binary Containers</span></a>
@@ -1334,6 +1343,16 @@ <h5 class="heading settled" data-level="3.7.1.6" id="skew_symmetric_upper_struct
13341343
<p><code>values</code> = [1, 2, 9, 7, 2, 2, 3, 3, 7]</p>
13351344
</ul>
13361345
</div>
1346+
<h3 class="heading settled" data-level="3.8" id="key_attributes"><span class="secno">3.8. </span><span class="content">Attributes</span><a class="self-link" href="#key_attributes"></a></h3>
1347+
The <code>attributes</code> key shall denote a dictionary of optional attributes containing
1348+
keys with information about the stored matrix and the data it represents.
1349+
Attributes are optional and may be ignored by a compliant parser.
1350+
<h4 class="heading settled" data-level="3.8.1" id="defined-attributes"><span class="secno">3.8.1. </span><span class="content">Defined Attributes</span><a class="self-link" href="#defined-attributes"></a></h4>
1351+
<h5 class="heading settled" data-level="3.8.1.1" id="number_of_diagonal_elements_attributes"><span class="secno">3.8.1.1. </span><span class="content">number_of_diagonal_elements</span><a class="self-link" href="#number_of_diagonal_elements_attributes"></a></h5>
1352+
<code>number_of_diagonal_elements</code> shall contain an integer value corresponding to
1353+
the number of elements on the stored matrix’s diagonal.
1354+
<p class="note" role="note"><span>Note:</span> implementations are highly encouraged to provide the <code>number_of_diagonal_elements</code> attribute for matrices with a symmetric,
1355+
skew-symmetric, or Hermitian structure.</p>
13371356
<h2 class="heading settled" data-level="4" id="binary_container"><span class="secno">4. </span><span class="content">Binary Containers</span><a class="self-link" href="#binary_container"></a></h2>
13381357
Binary containers must store binary arrays in a standardized, cross-platform
13391358
manner, using the corresponding dataset names previously defined.

spec/latest/index.bs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,22 @@ Example of a symmetric CSR matrix.
822822

823823
</div>
824824

825+
Attributes {#key_attributes}
826+
--------------------------
827+
The `attributes` key shall denote a dictionary of optional attributes containing
828+
keys with information about the stored matrix and the data it represents.
829+
Attributes are optional and may be ignored by a compliant parser.
830+
831+
### Defined Attributes
832+
833+
#### number_of_diagonal_elements #### {#number_of_diagonal_elements_attributes}
834+
`number_of_diagonal_elements` shall contain an integer value corresponding to
835+
the number of elements on the stored matrix's diagonal.
836+
837+
Note: implementations are highly encouraged to provide the
838+
`number_of_diagonal_elements` attribute for matrices with a symmetric,
839+
skew-symmetric, or Hermitian structure.
840+
825841
Binary Containers {#binary_container}
826842
=====================================
827843
Binary containers must store binary arrays in a standardized, cross-platform

0 commit comments

Comments
 (0)