66
77namespace  System . Buffers 
88{ 
9-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
109    public  readonly  partial  struct  NIndex  :  System . IEquatable < System . Buffers . NIndex > 
1110    { 
1211        private  readonly  int  _dummyPrimitive ; 
@@ -30,7 +29,6 @@ namespace System.Buffers
3029        public  System . Index  ToIndexUnchecked ( )  {  throw  null ;  } 
3130        public  override  string  ToString ( )  {  throw  null ;  } 
3231    } 
33-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
3432    public  readonly  partial  struct  NRange  :  System . IEquatable < System . Buffers . NRange > 
3533    { 
3634        private  readonly  int  _dummyPrimitive ; 
@@ -55,7 +53,6 @@ namespace System.Buffers
5553} 
5654namespace  System . Numerics . Tensors 
5755{ 
58-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
5956    public  partial  interface  IReadOnlyTensor 
6057    { 
6158        nint  FlattenedLength  {  get ;  } 
@@ -70,10 +67,12 @@ public partial interface IReadOnlyTensor
7067        int  Rank  {  get ;  } 
7168        [ System . Diagnostics . CodeAnalysis . UnscopedRefAttribute ] 
7269        System . ReadOnlySpan < nint >  Strides  {  get ;  } 
73-         System . Buffers . MemoryHandle  GetPinnedHandle ( ) ; 
7470    } 
75-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
76-     public  partial  interface  IReadOnlyTensor < TSelf ,  T >  :  System . Collections . Generic . IEnumerable < T > ,  System . Collections . IEnumerable ,  System . Numerics . Tensors . IReadOnlyTensor  where  TSelf  :  System . Numerics . Tensors . IReadOnlyTensor < TSelf ,  T > 
71+     public  partial  interface  IReadOnlyTensor < TSelf ,  T >  :  System . Numerics . Tensors . IReadOnlyTensor 
72+         where  TSelf  :  System . Numerics . Tensors . IReadOnlyTensor < TSelf ,  T > 
73+ #if NET9_0_OR_GREATER
74+         ,  allows  ref  struct 
75+ #endif
7776    { 
7877        static abstract  TSelf  Empty  {  get ;  } 
7978        new ref  readonly T  this [ params  scoped  System. ReadOnlySpan < System . Buffers . NIndex > indexes ]  {  get ;  } 
@@ -94,7 +93,6 @@ public partial interface IReadOnlyTensor<TSelf, T> : System.Collections.Generic.
9493        bool  TryCopyTo ( scoped  in  System . Numerics . Tensors . TensorSpan < T >  destination ) ; 
9594        bool  TryFlattenTo ( scoped System . Span < T >  destination ) ; 
9695    } 
97-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
9896    public  partial  interface  ITensor  :  System . Numerics . Tensors . IReadOnlyTensor 
9997    { 
10098        bool  IsReadOnly  {  get ;  } 
@@ -103,8 +101,11 @@ public partial interface ITensor : System.Numerics.Tensors.IReadOnlyTensor
103101        void  Clear ( ) ; 
104102        void  Fill ( object  value ) ; 
105103    } 
106-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
107-     public  partial  interface  ITensor < TSelf ,  T >  :  System . Collections . Generic . IEnumerable < T > ,  System . Collections . IEnumerable ,  System . Numerics . Tensors . IReadOnlyTensor ,  System . Numerics . Tensors . IReadOnlyTensor < TSelf ,  T > ,  System . Numerics . Tensors . ITensor  where  TSelf  :  System . Numerics . Tensors . ITensor < TSelf ,  T > 
104+     public  partial  interface  ITensor < TSelf ,  T >  :  System . Numerics . Tensors . IReadOnlyTensor ,  System . Numerics . Tensors . IReadOnlyTensor < TSelf ,  T > ,  System . Numerics . Tensors . ITensor 
105+         where  TSelf  :  System . Numerics . Tensors . ITensor < TSelf ,  T > 
106+ #if NET9_0_OR_GREATER
107+         ,  allows  ref  struct 
108+ #endif
108109    { 
109110        new ref  T  this [ params  scoped  System. ReadOnlySpan < System . Buffers . NIndex > indexes ]  {  get ;  } 
110111        new TSelf  this [ params  scoped  System. ReadOnlySpan < System . Buffers . NRange > ranges ]  {  get ;  set ;  } 
@@ -126,6 +127,7 @@ public readonly ref partial struct ReadOnlyTensorDimensionSpan<T>
126127        private  readonly  object  _dummy ; 
127128        private  readonly  int  _dummyPrimitive ; 
128129        public  System . Numerics . Tensors . ReadOnlyTensorSpan < T >  this [ nint  index ]  {  get  {  throw  null ;  }  } 
130+         public  bool  IsDense  {  get  {  throw  null ;  }  } 
129131        public  nint  Length  {  get  {  throw  null ;  }  } 
130132        public  System . Numerics . Tensors . ReadOnlyTensorDimensionSpan < T > . Enumerator  GetEnumerator ( )  {  throw  null ;  } 
131133        public  ref  partial  struct  Enumerator
@@ -137,7 +139,6 @@ public ref partial struct Enumerator
137139            public  void  Reset ( )  {  } 
138140        } 
139141    } 
140-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
141142    public  readonly  ref  partial  struct ReadOnlyTensorSpan < T > 
142143    { 
143144        private  readonly object _dummy; 
@@ -162,6 +163,7 @@ public readonly ref partial struct ReadOnlyTensorSpan<T>
162163        public  bool  HasAnyDenseDimensions {  get  {  throw  null ;  }  } 
163164        public  bool  IsDense {  get  {  throw  null ;  }  } 
164165        public  bool  IsEmpty {  get  {  throw  null ;  }  } 
166+         public  bool  IsPinned {  get  {  throw  null ;  }  } 
165167        public  ref  readonly T  this [ params  scoped  System. ReadOnlySpan< System. Buffers. NIndex>  indexes] {  get  {  throw  null ;  }  } 
166168        public  System . Numerics . Tensors . ReadOnlyTensorSpan < T >  this [ params  scoped  System. ReadOnlySpan< System. Buffers. NRange>  ranges] {  get  {  throw  null ;  }  } 
167169        public  ref  readonly T  this [ params  scoped  System. ReadOnlySpan< nint >  indexes]  {  get  {  throw  null ;  }  } 
@@ -205,10 +207,9 @@ public void FlattenTo(scoped System.Span<T> destination) { }
205207            readonly  object ?  System . Collections. IEnumerator. Current {  get  {  throw  null ;  }  } 
206208            public  bool  MoveNext ( )  {  throw  null ;  } 
207209            public  void  Reset ( )  {  } 
208-             void  System . IDisposable. Dispose( )  {  } 
210+             readonly   void  System . IDisposable. Dispose( )  {  } 
209211        } 
210212    } 
211-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
212213    public  static partial  class  Tensor 
213214    { 
214215        public  static System . Numerics . Tensors . Tensor < T >  Abs < T > ( in  System . Numerics . Tensors . ReadOnlyTensorSpan < T >  x )  where  T  :  System . Numerics . INumberBase < T >  {  throw  null ;  } 
@@ -578,7 +579,9 @@ public readonly ref partial struct TensorDimensionSpan<T>
578579        private  readonly object _dummy; 
579580        private  readonly  int  _dummyPrimitive ; 
580581        public  System . Numerics . Tensors . TensorSpan < T >  this [ nint  index ] {  get  {  throw  null ;  }  } 
582+         public  bool  IsDense {  get  {  throw  null ;  }  } 
581583        public  nint  Length {  get  {  throw  null ;  }  } 
584+         public  static implicit  operator System . Numerics . Tensors . ReadOnlyTensorDimensionSpan < T > ( scoped  in  System . Numerics . Tensors . TensorDimensionSpan < T >  tensorDimension )  {  throw  null ;  } 
582585        public System . Numerics . Tensors . TensorDimensionSpan < T > . Enumerator  GetEnumerator ( )  {  throw  null ;  } 
583586        public ref  partial  struct Enumerator
584587        { 
@@ -823,7 +826,6 @@ public static void Truncate<T>(System.ReadOnlySpan<T> x, System.Span<T> destinat
823826        public static  void  Xor < T > ( System . ReadOnlySpan < T >  x ,  System . ReadOnlySpan < T >  y ,  System . Span < T >  destination )  where  T  :  System . Numerics . IBitwiseOperators < T ,  T ,  T >  {  } 
824827        public static  void  Xor < T > ( System . ReadOnlySpan < T >  x ,  T  y ,  System . Span < T >  destination )  where  T  :  System . Numerics . IBitwiseOperators < T ,  T ,  T >  {  } 
825828    } 
826-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
827829    public readonly ref  partial struct  TensorSpan < T > 
828830    { 
829831        private readonly object  _dummy ; 
@@ -848,6 +850,7 @@ public readonly ref partial struct TensorSpan<T>
848850        public bool  HasAnyDenseDimensions  {  get  {  throw  null ;  }  } 
849851        public bool  IsDense  {  get  {  throw  null ;  }  } 
850852        public bool  IsEmpty  {  get  {  throw  null ;  }  } 
853+         public bool  IsPinned  {  get  {  throw  null ;  }  } 
851854        public ref  T  this [ params  scoped  System. ReadOnlySpan < System . Buffers . NIndex >  indexes ]  {  get  {  throw  null ;  }  } 
852855        public System . Numerics . Tensors . TensorSpan < T >  this [ params  scoped  System. ReadOnlySpan < System . Buffers . NRange >  ranges ]  {  get  {  throw  null ;  }  set  {  }  } 
853856        public ref  T  this [ params  scoped  System. ReadOnlySpan < nint >  indexes ]  {  get  {  throw  null ;  }  } 
@@ -897,11 +900,10 @@ public void FlattenTo(scoped System.Span<T> destination) { }
897900            readonly object ?  System . Collections . IEnumerator . Current  {  get  {  throw  null ;  }  } 
898901            public bool  MoveNext ( )  {  throw  null ;  } 
899902            public void  Reset ( )  {  } 
900-             void  System . IDisposable. Dispose( )  {  } 
903+             readonly  void  System . IDisposable . Dispose ( )  {  } 
901904        } 
902905    } 
903-     [ System . Diagnostics . CodeAnalysis . ExperimentalAttribute ( "SYSLIB5001" ,  UrlFormat = "https://aka.ms/dotnet-warnings/{0}" ) ] 
904-     public  sealed  partial  class  Tensor < T >  :  System . Collections . Generic . IEnumerable < T > ,  System . Collections . IEnumerable ,  System . Numerics . Tensors . IReadOnlyTensor ,  System . Numerics . Tensors . IReadOnlyTensor < System . Numerics . Tensors . Tensor < T > ,  T > ,  System . Numerics . Tensors . ITensor ,  System . Numerics . Tensors . ITensor < System . Numerics . Tensors . Tensor < T > ,  T > 
906+     public sealed partial class  Tensor < T >  :  System . Collections . IEnumerable ,  System . Collections . Generic . IEnumerable < T > ,  System . Numerics . Tensors . IReadOnlyTensor ,  System . Numerics . Tensors . IReadOnlyTensor < System . Numerics . Tensors . Tensor < T > ,  T > ,  System . Numerics . Tensors . ITensor ,  System . Numerics . Tensors . ITensor < System . Numerics . Tensors . Tensor < T > ,  T > 
905907    { 
906908        internal Tensor ( )  {  } 
907909        public static  System . Numerics . Tensors . Tensor < T >  Empty  {  get  {  throw  null ;  }  } 
0 commit comments