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?


     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


  • 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