Skip to content

Commit

Permalink
Add attributes to the specification (#49)
Browse files Browse the repository at this point in the history
* First stab at adding attributes

* Fix
  • Loading branch information
BenBrock authored May 7, 2024
1 parent 7a379e3 commit 51647ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/latest/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,22 @@ Example of a symmetric CSR matrix.

</div>

Attributes {#key_attributes}
--------------------------
The `attributes` key shall denote a dictionary of optional attributes containing
keys with information about the stored matrix and the data it represents.
Attributes are optional and may be ignored by a compliant parser.

### Defined Attributes

#### number_of_diagonal_elements #### {#number_of_diagonal_elements_attributes}
`number_of_diagonal_elements` shall contain an integer value corresponding to
the number of elements on the stored matrix's diagonal.

Note: implementations are highly encouraged to provide the
`number_of_diagonal_elements` attribute for matrices with a symmetric,
skew-symmetric, or Hermitian structure.

Binary Containers {#binary_container}
=====================================
Binary containers must store binary arrays in a standardized, cross-platform
Expand Down

0 comments on commit 51647ae

Please sign in to comment.