Tensor.CosPi 方法

定义

重载

CosPi<T>(ReadOnlyTensorSpan<T>)

计算指定张量中值的元素余弦值,并将其乘以 Pi,并返回结果的新 Tensor<T>

CosPi<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

计算指定张量中值的元素余弦值,并将其乘以 Pi,并返回结果的新 TensorSpan<T>

CosPi<T>(ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

计算指定张量中值的元素余弦值,并将其乘以 Pi,并返回结果的新 Tensor<T>

public:
generic <typename T>
 where T : System::Numerics::ITrigonometricFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ CosPi(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static System.Numerics.Tensors.Tensor<T> CosPi<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T>;
static member CosPi : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)> (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)
Public Function CosPi(Of T As ITrigonometricFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)

类型参数

T

参数

返回

注解

此方法有效地计算 T.CosPi(x[i])

x 中的角度必须以弧度为单位。 使用 System.Single.DegreesToRadians 或乘以 T。Pi/180 将度转换为弧度。

此方法可以调用基础 C 运行时,或使用特定于当前体系结构的说明。 不同的操作系统或体系结构之间的确切结果可能有所不同。

适用于

CosPi<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

Source:
TensorExtensions.cs

计算指定张量中值的元素余弦值,并将其乘以 Pi,并返回结果的新 TensorSpan<T>

public:
generic <typename T>
 where T : System::Numerics::ITrigonometricFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ CosPi(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosPi<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T>;
static member CosPi : ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)
Public Function CosPi(Of T As ITrigonometricFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

类型参数

T

参数

destination
TensorSpan<T>

返回

注解

此方法有效地计算 T.CosPi(x[i])

x 中的角度必须以弧度为单位。 使用 System.Single.DegreesToRadians 或乘以 T。Pi/180 将度转换为弧度。

此方法可以调用基础 C 运行时,或使用特定于当前体系结构的说明。 不同的操作系统或体系结构之间的确切结果可能有所不同。

适用于