locked
what is the type for 3d jagged array RRS feed

  • Question

  • Hi, I want to define an array (csharp array I mean) of 3d infer.net jagged arrays.

    I need to know what is the type for this 3d jagged array. In this post it is defined as var, but I need to specify the type. Can anyone help me please?

    https://social.microsoft.com/Forums/en-US/d5db1bbc-b209-438b-a155-e0bfa5c756d7/creating-array-of-array-of-array-of-variables-migrated-from-communityresearchmicrosoftcom?forum=infer.net

     var innerSizes = Variable.Constant(new int[][] { 
                            new int[] { 1, 2 }, new int[] { 1,2,3 }
                      }, outer, middle).Named("innerSizes");

    instead of var what type can I put in the above line of code.

    Any help is appreciated.

    Thursday, December 4, 2014 4:57 PM

Answers

  • This one looks 2D to me, so:

    VariableArray<VariableArray<int>, int[][]>

    The 3D would be

    VariableArray<VariableArray<VariableArray<T>, T[][]>, T[][][]>
    Thursday, December 4, 2014 5:21 PM