Table of Contents

Method CreateByDouble

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

CreateByDouble<T>(double)

Creates a Vector<T> whose components are of a specified double value (创建一个 Vector<T>,其元素为指定的双精度浮点值).

public static Vector<T> CreateByDouble<T>(double src) where T : struct

Parameters

src double

Source value (源值).

Returns

Vector<T>

A new Vector<T> with all elements initialized to src (一个新的 Vector<T>,其中所有元素已初始化为 src ).

Type Parameters

T

The vector element type (向量中的元素的类型).