@@ -48,10 +48,10 @@ public ReadOnlyTensorSpan(T[]? array)
48
48
/// <param name="lengths">The lengths of the dimensions. If an empty span is provided, the created tensor will have a single dimension that is the same length as <paramref name="array" />.</param>
49
49
/// <remarks>Returns default when <paramref name="array"/> is null.</remarks>
50
50
/// <exception cref="ArgumentOutOfRangeException">
51
- /// Thrown when one of the following conditions is met:
52
- /// * <paramref name="array" /> is null and <paramref name="lengths" /> is not empty
53
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
54
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length
51
+ /// One of the following conditions is met:
52
+ /// * <paramref name="array" /> is null and <paramref name="lengths" /> is not empty.
53
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
54
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length.
55
55
/// </exception>
56
56
public ReadOnlyTensorSpan ( T [ ] ? array , scoped ReadOnlySpan < nint > lengths )
57
57
{
@@ -67,13 +67,13 @@ public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths)
67
67
/// <param name="strides">The strides of each dimension. If an empty span is provided, then strides will be automatically calculated from <paramref name="lengths" />.</param>
68
68
/// <remarks>Returns default when <paramref name="array"/> is null.</remarks>
69
69
/// <exception cref="ArgumentOutOfRangeException">
70
- /// Thrown when one of the following conditions is met:
71
- /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty
72
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
73
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length
74
- /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>
75
- /// * <paramref name="strides" /> is not empty and contains an element that is negative
76
- /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position
70
+ /// One of the following conditions is met:
71
+ /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty.
72
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
73
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length.
74
+ /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>.
75
+ /// * <paramref name="strides" /> is not empty and contains an element that is negative.
76
+ /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position.
77
77
/// </exception>
78
78
public ReadOnlyTensorSpan ( T [ ] ? array , scoped ReadOnlySpan < nint > lengths , scoped ReadOnlySpan < nint > strides )
79
79
{
@@ -90,14 +90,14 @@ public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped
90
90
/// <param name="strides">The strides of each dimension. If an empty span is provided, then strides will be automatically calculated from <paramref name="lengths" />.</param>
91
91
/// <remarks>Returns default when <paramref name="array"/> is null.</remarks>
92
92
/// <exception cref="ArgumentOutOfRangeException">
93
- /// Thrown when one of the following conditions is met:
94
- /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty
95
- /// * <paramref name="start" /> is not in range of <paramref name="array" />
96
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
97
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length
98
- /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>
99
- /// * <paramref name="strides" /> is not empty and contains an element that is negative
100
- /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position
93
+ /// One of the following conditions is met:
94
+ /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty.
95
+ /// * <paramref name="start" /> is not in range of <paramref name="array" />.
96
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
97
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length.
98
+ /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>.
99
+ /// * <paramref name="strides" /> is not empty and contains an element that is negative.
100
+ /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position.
101
101
/// </exception>
102
102
public ReadOnlyTensorSpan ( T [ ] ? array , int start , scoped ReadOnlySpan < nint > lengths , scoped ReadOnlySpan < nint > strides )
103
103
{
@@ -121,9 +121,9 @@ public ReadOnlyTensorSpan(ReadOnlySpan<T> span)
121
121
/// <param name="span">The target span.</param>
122
122
/// <param name="lengths">The lengths of the dimensions. If an empty span is provided, the created tensor span will have a single dimension that is the same length as <paramref name="span" />.</param>
123
123
/// <exception cref="ArgumentOutOfRangeException">
124
- /// Thrown when one of the following conditions is met:
125
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
126
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="span" />.Length
124
+ /// One of the following conditions is met:
125
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
126
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="span" />.Length.
127
127
/// </exception>
128
128
public ReadOnlyTensorSpan ( ReadOnlySpan < T > span , scoped ReadOnlySpan < nint > lengths )
129
129
{
@@ -137,12 +137,12 @@ public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> length
137
137
/// <param name="lengths">The lengths of the dimensions. If an empty span is provided, the created tensor span will have a single dimension that is the same length as <paramref name="span" />.</param>
138
138
/// <param name="strides">The strides of each dimension. If an empty span is provided, then strides will be automatically calculated from <paramref name="lengths" />.</param>
139
139
/// <exception cref="ArgumentOutOfRangeException">
140
- /// Thrown when one of the following conditions is met:
141
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
142
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="span" />.Length
143
- /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>
144
- /// * <paramref name="strides" /> is not empty and contains an element that is negative
145
- /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position
140
+ /// One of the following conditions is met:
141
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
142
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="span" />.Length.
143
+ /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>.
144
+ /// * <paramref name="strides" /> is not empty and contains an element that is negative.
145
+ /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position.
146
146
/// </exception>
147
147
public ReadOnlyTensorSpan ( ReadOnlySpan < T > span , scoped ReadOnlySpan < nint > lengths , scoped ReadOnlySpan < nint > strides )
148
148
{
@@ -175,14 +175,14 @@ public ReadOnlyTensorSpan(Array? array)
175
175
/// <para></para>
176
176
/// </remarks>
177
177
/// <exception cref="ArgumentOutOfRangeException">
178
- /// Thrown when one of the following conditions is met:
179
- /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty
180
- /// * <paramref name="start" /> is not in range of <paramref name="array" />
181
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
182
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length
183
- /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>
184
- /// * <paramref name="strides" /> is not empty and contains an element that is negative
185
- /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position
178
+ /// One of the following conditions is met:
179
+ /// * <paramref name="array" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty.
180
+ /// * <paramref name="start" /> is not in range of <paramref name="array" />.
181
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
182
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="array" />.Length.
183
+ /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>.
184
+ /// * <paramref name="strides" /> is not empty and contains an element that is negative.
185
+ /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position.
186
186
/// </exception>
187
187
public ReadOnlyTensorSpan ( Array ? array , scoped ReadOnlySpan < int > start , scoped ReadOnlySpan < nint > lengths , scoped ReadOnlySpan < nint > strides )
188
188
{
@@ -211,11 +211,11 @@ public unsafe ReadOnlyTensorSpan(T* data, nint dataLength)
211
211
/// <param name="lengths">The lengths of the dimensions. If an empty span is provided, the created tensor span will have a single dimension that is the same length as <paramref name="dataLength" />.</param>
212
212
/// <remarks>Returns default when <paramref name="data" /> is null.</remarks>
213
213
/// <exception cref="ArgumentOutOfRangeException">
214
- /// Thrown when one of the following conditions is met:
215
- /// * <paramref name="data" /> is <c>null</c> and <paramref name="dataLength" /> is not zero
216
- /// * <paramref name="data" /> is null and <paramref name="lengths" />
217
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
218
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="dataLength" />
214
+ /// One of the following conditions is met:
215
+ /// * <paramref name="data" /> is <c>null</c> and <paramref name="dataLength" /> is not zero.
216
+ /// * <paramref name="data" /> is null and <paramref name="lengths" />.
217
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
218
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="dataLength" />.
219
219
/// </exception>
220
220
[ CLSCompliant ( false ) ]
221
221
public unsafe ReadOnlyTensorSpan ( T * data , nint dataLength , scoped ReadOnlySpan < nint > lengths )
@@ -231,14 +231,14 @@ public unsafe ReadOnlyTensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<n
231
231
/// <param name="strides">The strides of each dimension. If an empty span is provided, then strides will be automatically calculated from <paramref name="lengths" />.</param>
232
232
/// <remarks>Returns default when <paramref name="data" /> is null.</remarks>
233
233
/// <exception cref="ArgumentOutOfRangeException">
234
- /// Thrown when one of the following conditions is met:
235
- /// * <paramref name="data" /> is <c>null</c> and <paramref name="dataLength" /> is not zero
236
- /// * <paramref name="data" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty
237
- /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative
238
- /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="dataLength" />
239
- /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>
240
- /// * <paramref name="strides" /> is not empty and contains an element that is negative
241
- /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position
234
+ /// One of the following conditions is met:
235
+ /// * <paramref name="data" /> is <c>null</c> and <paramref name="dataLength" /> is not zero.
236
+ /// * <paramref name="data" /> is null and <paramref name="lengths" /> or <paramref name="strides" /> is not empty.
237
+ /// * <paramref name="lengths" /> is not empty and contains an element that is either zero or negative.
238
+ /// * <paramref name="lengths" /> is not empty and has a flattened length greater than <paramref name="dataLength" />.
239
+ /// * <paramref name="strides" /> is not empty and has a length different from <paramref name="lengths"/>.
240
+ /// * <paramref name="strides" /> is not empty and contains an element that is negative.
241
+ /// * <paramref name="strides" /> is not empty and contains an element that is zero in a non leading position.
242
242
/// </exception>
243
243
[ CLSCompliant ( false ) ]
244
244
public unsafe ReadOnlyTensorSpan ( T * data , nint dataLength , scoped ReadOnlySpan < nint > lengths , scoped ReadOnlySpan < nint > strides )
0 commit comments