コード例 #1
0
 public MutableTransposeNdArrayImpl(MutableNdArrayImpl <T> source, ReadOnlySpan <int> axisMap)
     : base(TransposeShape(source.Shape, axisMap))
 {
     _source  = source;
     _axisMap = axisMap.ToArray();
 }
コード例 #2
0
 // This function is defined to limit lifetime of stackalloc.
 // Do not expand inline this local function.
 static void exchange(MutableNdArrayImpl <T> p, int j, (int, int) perm)