コード例 #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));
コード例 #18
0
 /// <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))
 {
 }
コード例 #20
0
 /// <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))
 {
 }
コード例 #22
0
 /// <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();
コード例 #24
0
 /// <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);