Κοινή χρήση μέσω


TensorPrimitives.Cosh Method

Definition

Overloads

Cosh(ReadOnlySpan<Single>, Span<Single>)

Computes the element-wise hyperbolic cosine of each single-precision floating-point radian angle in the specified tensor.

Cosh<T>(ReadOnlySpan<T>, Span<T>)

Computes the element-wise hyperbolic cosine of each radian angle in the specified tensor.

Cosh(ReadOnlySpan<Single>, Span<Single>)

Source:
TensorPrimitives.cs
Source:
TensorPrimitives.Single.cs

Computes the element-wise hyperbolic cosine of each single-precision floating-point radian angle in the specified tensor.

public:
 static void Cosh(ReadOnlySpan<float> x, Span<float> destination);
public static void Cosh (ReadOnlySpan<float> x, Span<float> destination);
static member Cosh : ReadOnlySpan<single> * Span<single> -> unit
Public Shared Sub Cosh (x As ReadOnlySpan(Of Single), destination As Span(Of Single))

Parameters

x
ReadOnlySpan<Single>

The tensor, represented as a span.

destination
Span<Single>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = MathF.Cosh(x[i]).

If a value is equal to NegativeInfinity or PositiveInfinity, the result stored into the corresponding destination location is set to PositiveInfinity. If a value is equal to NaN, the result stored into the corresponding destination location is also NaN.

The angles in x must be in radians. Use DegreesToRadians(Single) or multiply by PI/180 to convert degrees to radians.

This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.

Applies to

Cosh<T>(ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.Cosh.cs

Computes the element-wise hyperbolic cosine of each radian angle in the specified tensor.

public:
generic <typename T>
 where T : System::Numerics::IHyperbolicFunctions<T> static void Cosh(ReadOnlySpan<T> x, Span<T> destination);
public static void Cosh<T> (ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IHyperbolicFunctions<T>;
static member Cosh : ReadOnlySpan<'T (requires 'T :> System.Numerics.IHyperbolicFunctions<'T>)> * Span<'T (requires 'T :> System.Numerics.IHyperbolicFunctions<'T>)> -> unit (requires 'T :> System.Numerics.IHyperbolicFunctions<'T>)
Public Shared Sub Cosh(Of T As IHyperbolicFunctions(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Cosh(x[i]).

If a value is equal to NegativeInfinity or PositiveInfinity, the result stored into the corresponding destination location is set to PositiveInfinity. If a value is equal to NaN, the result stored into the corresponding destination location is also NaN.

The angles in x must be in radians. Use DegreesToRadians(Single) or multiply by T.Pi/180 to convert degrees to radians.

This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.

Applies to