Skip to content

Commit 51647ae

Browse files
authored
Add attributes to the specification (#49)
* First stab at adding attributes * Fix
1 parent 7a379e3 commit 51647ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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)