Skip to content

Commit 6f5763c

Browse files
committed
Hide documentation for NumberStyle extensions
1 parent e0542f5 commit 6f5763c

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/Numerix/Documentation.docc/LinearAlgebra.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Numerix uses the Accelerate framework to access Basic Linear Algebra Subprograms
1515
- ``Vector/absoluteSum()``
1616
- ``Vector/cumulativeSum()``
1717
- ``swapValues(_:_:)-8dx3x``
18+
- ``swapValues(_:_:)-10kkk``

Sources/Numerix/ShapedArrayModule/NumberStyle.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public protocol NumberStyle {
99
var fractionLength: Int { get }
1010
}
1111

12+
@_documentation(visibility: private)
1213
extension Int: NumberStyle {
1314
public var stringDescription: String {
1415
String(self)
@@ -23,6 +24,7 @@ extension Int: NumberStyle {
2324
}
2425
}
2526

27+
@_documentation(visibility: private)
2628
extension Float: NumberStyle {
2729
public var stringDescription: String {
2830
self.formatted(.number.precision(.fractionLength(1...4)))
@@ -37,6 +39,7 @@ extension Float: NumberStyle {
3739
}
3840
}
3941

42+
@_documentation(visibility: private)
4043
extension Double: NumberStyle {
4144
public var stringDescription: String {
4245
self.formatted(.number.precision(.fractionLength(1...6)))

Sources/Numerix/ShapedArrayModule/ShapedArrayElement.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ShapedArrayElement enum to represent elements in a ShapedArray struct.
33
This allows a ShapedArray to be defined as nested arrays such as [[1, 2], [3, 4]] using array literals.
44
*/
55

6+
@_documentation(visibility: private)
67
public enum ShapedArrayElement<T> {
78
case array([ShapedArrayElement<T>])
89
case element(T)

0 commit comments

Comments
 (0)