示例#1
0
 public static ArrayView3D <T> As3DView <T>(this ArrayView <T> view, int width, Index2 extent)
     where T : struct =>
 new ArrayView3D <T>(view, width, extent);
示例#2
0
 public ArrayView3D(ArrayView <T> view, LongIndex3 extent)
     : this(new ArrayView <T, LongIndex3>(view, extent))
 {
 }
示例#3
0
 public static ArrayView2D <T> As2DView <T>(
     this ArrayView <T> view,
     LongIndex2 extent)
     where T : unmanaged =>
 new ArrayView2D <T>(view, extent);
示例#4
0
 public ArrayView3D(ArrayView <T> view, long width, long height, long depth)
     : this(view, new LongIndex3(width, height, depth))
 {
 }
示例#5
0
 public ArrayView3D(ArrayView <T> view, LongIndex2 extent, long depth)
     : this(view, new LongIndex3(extent, depth))
 {
 }
示例#6
0
 public ArrayView2D(ArrayView <T> view, long height)
     : this(view, new LongIndex2(view.Length / height, height))
 {
 }
示例#7
0
 public ArrayView2D(ArrayView <T> view, LongIndex2 extent)
     : this(new ArrayView <T, LongIndex2>(view, extent))
 {
 }
示例#8
0
 public static ArrayView2D <T> As2DView <T>(this ArrayView <T> view, Index2 extent)
     where T : struct =>
 new ArrayView2D <T>(view, extent);
示例#9
0
 public static ArrayView3D <T> As3DView <T>(this ArrayView <T> view, int height, int depth)
     where T : struct =>
 new ArrayView3D <T>(view, height, depth);
示例#10
0
 public ArrayView3D(ArrayView <T> view, int width, Index2 extent)
     : this(view, new Index3(width, extent))
 {
 }
示例#11
0
 public static ArrayView2D <T> As2DView <T>(this ArrayView <T> view, int width, int height)
     where T : struct =>
 new ArrayView2D <T>(view, width, height);
示例#12
0
 public ArrayView3D(ArrayView <T> view, Index2 extent, int depth)
     : this(view, new Index3(extent, depth))
 {
 }
示例#13
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view, Index1 element)
     where T : struct =>
 new VariableView <T>(view.GetSubView(element, 1));
示例#14
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view)
     where T : struct =>
 view.GetVariableView(Index1.Zero);
示例#15
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view)
     where T : unmanaged =>
 view.GetVariableView(Index1.Zero);
示例#16
0
 public static ArrayView3D <T> As3DView <T>(this ArrayView <T> view, Index2 extent)
     where T : struct =>
 new ArrayView3D <T>(view, extent.X, extent.Y);
示例#17
0
 public static VariableView <T> GetVariableView <T>(
     this ArrayView <T> view,
     LongIndex1 element)
     where T : unmanaged =>
 new VariableView <T>(view.GetSubView(element, 1L));
 /// <summary>
 /// Constructs a new 2D array view.
 /// </summary>
 /// <param name="view">The linear view to the data.</param>
 /// <param name="height">The height (number of elements in y direction).</param>
 public ArrayView2D(ArrayView <T> view, int height)
     : this(view, new Index2(view.Length / height, height))
 {
 }
示例#19
0
 public ArrayView2D(ArrayView <T> view, long width, long height)
     : this(view, new LongIndex2(width, height))
 {
 }
 /// <summary>
 /// Constructs a new 2D array view.
 /// </summary>
 /// <param name="view">The linear view to the data.</param>
 /// <param name="width">The width (number of elements in x direction).</param>
 /// <param name="height">The height (number of elements in y direction).</param>
 public ArrayView2D(ArrayView <T> view, int width, int height)
     : this(view, new Index2(width, height))
 {
 }
示例#21
0
 public ArrayView3D(ArrayView <T> view, long height, long depth)
     : this(view, new LongIndex3(view.Length / (height * depth), height, depth))
 {
 }
 /// <summary>
 /// Constructs a new 3D array view.
 /// </summary>
 /// <param name="view">The linear view to the data.</param>
 /// <param name="height">The height (number of elements in y direction).</param>
 /// <param name="depth">The depth (number of elements in z direction).</param>
 public ArrayView3D(ArrayView <T> view, int height, int depth)
     : this(view, new Index3(view.Length / (height * depth), height, depth))
 {
 }
示例#23
0
 public static unsafe void *LoadEffectiveAddress <T>(this ArrayView <T> view)
     where T : unmanaged =>
 view.LoadEffectiveAddress();
 /// <summary>
 /// Constructs a new 3D array view.
 /// </summary>
 /// <param name="view">The linear view to the data.</param>
 /// <param name="width">The width (number of elements in x direction).</param>
 /// <param name="height">The height (number of elements in y direction).</param>
 /// <param name="depth">The depth (number of elements in z direction).</param>
 public ArrayView3D(ArrayView <T> view, int width, int height, int depth)
     : this(view, new Index3(width, height, depth))
 {
 }
示例#25
0
 public ArrayView3D(ArrayView <T> view, long width, LongIndex2 extent)
     : this(view, new LongIndex3(width, extent))
 {
 }
示例#26
0
 public static ArrayView3D <T> As3DView <T>(
     this ArrayView <T> view,
     LongIndex2 extent,
     long depth)
     where T : unmanaged =>
 new ArrayView3D <T>(view, extent, depth);
示例#27
0
 public static ArrayView2D <T> As2DView <T>(
     this ArrayView <T> view,
     long width,
     long height)
     where T : unmanaged =>
 new ArrayView2D <T>(view, width, height);
示例#28
0
 public static ArrayView3D <T> As3DView <T>(
     this ArrayView <T> view,
     long width,
     LongIndex2 extent)
     where T : unmanaged =>
 new ArrayView3D <T>(view, width, extent);
示例#29
0
 public static ArrayView3D <T> As3DView <T>(
     this ArrayView <T> view,
     long height,
     long depth)
     where T : unmanaged =>
 new ArrayView3D <T>(view, height, depth);
示例#30
0
 public static ArrayView3D <T> As3DView <T>(this ArrayView <T> view, Index2 extent, int depth)
     where T : struct =>
 new ArrayView3D <T>(view, extent, depth);