locked
Referring to one dimension of jagged array RRS feed

  • Question

  • When a jagged array is defined using Ranges, can one use only first dimension of jagged array to refer the whole row of that?

    using(Variable.ForEach(rowRange)){

    var x = Variable.Array(Variable.Array<double>(colRange), rowRange).Named("x"); var y = Variable.Subarray(x[rowRange], indices[zRange]);

    }

    It's Ok when I use it and I think I'm getting the correct result. But I wanted to be sure since I didn't see this in the examples. Thanks.
    Monday, November 17, 2014 1:59 PM

Answers

  • Yes, that is correct.
    • Marked as answer by Capli19 Monday, November 17, 2014 5:38 PM
    Monday, November 17, 2014 2:24 PM