@@ -362,7 +362,7 @@ TensorOperations.IndexError
362
362
```
363
363
364
364
Once the expression is compiled, there can still be errors that will lead to runtime errors,
365
- the type of which depends ont he specific type of tensor (e.g. ` DimensionMismatch ` for
365
+ the type of which depends on the specific type of tensor (e.g. ` DimensionMismatch ` for
366
366
` AbstractArray ` objects). Indeed, indices with the same label, either open indices on the
367
367
two sides of the equation, or contracted indices, need to be compatible. For ` AbstractArray `
368
368
objects, this means they must have the same size. Other tensor types might have more complicated
@@ -384,11 +384,11 @@ TensorOperations.dimcheck_tensorcontract
384
384
```
385
385
386
386
Whenever an incompatible index structures is detected at runtime, the resulting error will
387
- originate deep within the implementation, at which point the error message will provide
388
- little information as to which specific tensors and which indices are producing the mismatch.
389
- When debugging, it might be useful to add the keyword argument ` contractcheck = true ` to
390
- the ` @tensor ` macro. Explicit checks using ` checkcontractible ` are then enabled that are run
391
- before any tensor operation is performed. When a mismatch is detected, these checks still
387
+ originate deep within the implementation, at which point the error message will provide
388
+ little information as to which specific tensors and which indices are producing the mismatch.
389
+ When debugging, it might be useful to add the keyword argument ` contractcheck = true ` to
390
+ the ` @tensor ` macro. Explicit checks using ` checkcontractible ` are then enabled that are run
391
+ before any tensor operation is performed. When a mismatch is detected, these checks still
392
392
have access to the label information and spawn a more informative error message.
393
393
394
394
A different type of check is the ` costcheck ` keyword argument, which can be given the values
@@ -454,4 +454,4 @@ operations.
454
454
455
455
``` @docs
456
456
@cutensor
457
- ```
457
+ ```
0 commit comments