We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4722b24 commit c72ca5eCopy full SHA for c72ca5e
QSharpMathUtils/src/Matrices/Constructors.qs
@@ -9,12 +9,12 @@ namespace Matrices.Constructors {
9
import Matrices.Multiply.*;
10
import Categories.Monoid.*;
11
12
- function MonoidReduceMatrix(n : Int) : (Double[][][] -> Double[][]) {
+ function MonoidReduceMatrixD(n : Int) : (Double[][][] -> Double[][]) {
13
let mul : Int -> Int -> Int = x -> y -> x * y;
14
let validate : Double[][] -> Double[][] = M -> Shape(M) == (n, n) ? M | fail $"Must be square array with height / width of {n}";
15
MonoidReduceValidate(IdentityMatrix(n), MatMulD, validate)
16
}
17
18
- export MonoidReduceMatrix;
+ export MonoidReduceMatrixD;
19
20
0 commit comments