I have a matrix: Array2D and a function
let DivideAndSubstract value index (matrix: float[,]) =
//something that returns a matrix
so I need to apply this function n times to my matrix like that:
matrix
|> DivideAndSubstract matrix.[0,0] 0
|> DivideAndSubstract matrix.[1,1] 1
|> DivideAndSubstract matrix.[2,2] 2
....
|> DivideAndSubstract matrix.[n,n] n
where n = Array2D.length1 matrix - 1
How can I implement this pipelining?
No comments:
Post a Comment