Vector.SoftMaxInto<T> Method

Computes the softmax function of a vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.7
C#
public static Vector<T> SoftMaxInto<T>(
	Vector<T> vector,
	Vector<T>? result
)

Parameters

vector  Vector<T>
A vector.
result  Vector<T>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

Vector<T>
The softmax function applied to vector.

Exceptions

ArgumentNullException

vector is null.

See Also