You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/compiler/qsc_doc_gen/src/generate_docs/tests.rs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,7 @@ fn index_file_generation() {
181
181
182
182
| Name | Description |
183
183
|------|-------------|
184
+
| [Complex](xref:Qdk.Std.Core.Complex) | Represents a complex number by its real and imaginary components. The real component can be accessed via the `Real` field, and the imaginary component via the `Imag` field. Complex literals can be written using the form `a + bi`, where `a` is the Double literal for the real part and `b` is the Double literal for the imaginary part. |
184
185
| [Length](xref:Qdk.Std.Core.Length) | Returns the number of elements in the input array `a`. |
185
186
| [Repeated](xref:Qdk.Std.Core.Repeated) | Creates an array of given `length` with all elements equal to given `value`. `length` must be a non-negative integer. |
let combined_summary = core_summaries.join("\n\n");
268
269
269
270
expect![[r#"
271
+
## Complex
272
+
273
+
```qsharp
274
+
struct Complex { Real : Double, Imag : Double }
275
+
```
276
+
277
+
Represents a complex number by its real and imaginary components. The real component can be accessed via the `Real` field, and the imaginary component via the `Imag` field. Complex literals can be written using the form `a + bi`, where `a` is the Double literal for the real part and `b` is the Double literal for the imaginary part.
0 commit comments