Tensor.IndexOfMaxMagnitude<T>(ReadOnlyTensorSpan<T>) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for the index of the number with the largest magnitude in the specified tensor.
public:
generic <typename T>
where T : System::Numerics::INumber<T> static int IndexOfMaxMagnitude(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
C#
public static int IndexOfMaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T>;
static member IndexOfMaxMagnitude : ReadOnlyTensorSpan -> int (requires 'T :> System.Numerics.INumber<'T>)
Public Function IndexOfMaxMagnitude(Of T As INumber(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As Integer
- T
The input ReadOnlyTensorSpan<T>.
Продукт | Версії |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: