Exemplo n.º 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);
Exemplo n.º 2
0
 public ArrayView3D(ArrayView <T> view, LongIndex3 extent)
     : this(new ArrayView <T, LongIndex3>(view, extent))
 {
 }
Exemplo n.º 3
0
 public static ArrayView2D <T> As2DView <T>(
     this ArrayView <T> view,
     LongIndex2 extent)
     where T : unmanaged =>
 new ArrayView2D <T>(view, extent);
Exemplo n.º 4
0
 public ArrayView3D(ArrayView <T> view, long width, long height, long depth)
     : this(view, new LongIndex3(width, height, depth))
 {
 }
Exemplo n.º 5
0
 public ArrayView3D(ArrayView <T> view, LongIndex2 extent, long depth)
     : this(view, new LongIndex3(extent, depth))
 {
 }
Exemplo n.º 6
0
 public ArrayView2D(ArrayView <T> view, long height)
     : this(view, new LongIndex2(view.Length / height, height))
 {
 }
Exemplo n.º 7
0
 public ArrayView2D(ArrayView <T> view, LongIndex2 extent)
     : this(new ArrayView <T, LongIndex2>(view, extent))
 {
 }
Exemplo n.º 8
0
 public static ArrayView2D <T> As2DView <T>(this ArrayView <T> view, Index2 extent)
     where T : struct =>
 new ArrayView2D <T>(view, extent);
Exemplo n.º 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);
Exemplo n.º 10
0
 public ArrayView3D(ArrayView <T> view, int width, Index2 extent)
     : this(view, new Index3(width, extent))
 {
 }
Exemplo n.º 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);
Exemplo n.º 12
0
 public ArrayView3D(ArrayView <T> view, Index2 extent, int depth)
     : this(view, new Index3(extent, depth))
 {
 }
Exemplo n.º 13
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view, Index1 element)
     where T : struct =>
 new VariableView <T>(view.GetSubView(element, 1));
Exemplo n.º 14
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view)
     where T : struct =>
 view.GetVariableView(Index1.Zero);
Exemplo n.º 15
0
 public static VariableView <T> GetVariableView <T>(this ArrayView <T> view)
     where T : unmanaged =>
 view.GetVariableView(Index1.Zero);
Exemplo n.º 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);
Exemplo n.º 17
0
 public static VariableView <T> GetVariableView <T>(
     this ArrayView <T> view,
     LongIndex1 element)
     where T : unmanaged =>
 new VariableView <T>(view.GetSubView(element, 1L));
Exemplo n.º 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))
 {
 }
Exemplo n.º 19
0
 public ArrayView2D(ArrayView <T> view, long width, long height)
     : this(view, new LongIndex2(width, height))
 {
 }
Exemplo n.º 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))
 {
 }
Exemplo n.º 21
0
 public ArrayView3D(ArrayView <T> view, long height, long depth)
     : this(view, new LongIndex3(view.Length / (height * depth), height, depth))
 {
 }
Exemplo n.º 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))
 {
 }
Exemplo n.º 23
0
 public static unsafe void *LoadEffectiveAddress <T>(this ArrayView <T> view)
     where T : unmanaged =>
 view.LoadEffectiveAddress();
Exemplo n.º 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))
 {
 }
Exemplo n.º 25
0
 public ArrayView3D(ArrayView <T> view, long width, LongIndex2 extent)
     : this(view, new LongIndex3(width, extent))
 {
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);