向量
27 个节点
本页内容 27
向量
函数重载 1/4
向量() -> Vector
DivookaTensor1D DivookaTensor1D()
Construct empty.
返回
| 向量 | Vector |
重载 2/4
向量(值: IEnumerable<数字>) -> Vector
DivookaTensor1D DivookaTensor1D(IEnumerable<double> values)
Construct from (copy of) values.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | IEnumerable<数字> | — |
返回
| 向量 | Vector |
重载 3/4
向量(值: 数字数组) -> Vector
DivookaTensor1D DivookaTensor1D(params double[] values)
Construct from param arguments (no copy).
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字数组 | — |
返回
| 向量 | Vector |
重载 4/4
向量(值: 数字数组) -> Vector
DivookaTensor1D op_Implicit(double[] values)
此节点没有文档说明。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字数组 | — |
返回
| 向量 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
包含
函数Whether any element is exactly equal to Item; see DivookaTensor1D.IndexOf for what exact means.
包含(Vector: Vector, 项: 数字) -> 真否
bool Contains(DivookaTensor1D Vector, double item)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — | |
| 项 | 数字 | — | The value to look for. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
复制
函数Make a copy
复制(Vector: Vector) -> Vector
DivookaTensor1D Copy(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
复制到数组
函数Copies every element into Array, starting at Array Index.
复制到数组(Vector: Vector, 数组: 数字数组, 数组索引: 整数)
void CopyTo(
DivookaTensor1D Vector,
double[] array,
int arrayIndex)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — | |
| 数组 | 数字数组 | — | The array to fill; null throws System.ArgumentNullException, and one without room for every element from Array Index on throws System.ArgumentException. |
| 数组索引 | 整数 | — | The position in Array to start writing at; a negative number throws System.ArgumentOutOfRangeException. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
项数
函数The number of elements; the same as DivookaTensor1D.Length.
项数(Vector: Vector) -> 整数
int Count(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
索引
函数The positions of the elements as numbers, 0, 1, 2 and so on, one per element; handy as the x values when plotting the vector.
索引(Vector: Vector) -> 数字数组
double[] Index(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 数字数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
项
函数The element at Index, counting from zero.
项(Vector: Vector, 索引: 整数) -> 数字
double Item(DivookaTensor1D Vector, int index)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — | |
| 索引 | 整数 | — | The zero-based position; below zero or at or past the length throws System.IndexOutOfRangeException. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
长度
函数Get length of vector
长度(Vector: Vector) -> 整数
int Length(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
大小
函数Get string representation of size.
大小(Vector: Vector) -> 文本
string Size(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
获取枚举器
函数Goes through the elements in order.
获取枚举器(Vector: Vector) -> IEnumerator<数字>
IEnumerator<double> GetEnumerator(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | IEnumerator<数字> |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
获取预览数组
函数The elements as an array, for the preview display; this is the vector's own storage, not a copy.
获取预览数组(Vector: Vector) -> 数组
Array GetPreviewArray(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
获取预览文本
函数The elements as text for the preview display, one per line, written in the current culture's number format.
获取预览文本(Vector: Vector) -> 文本
string GetPreviewString(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
项的索引
函数The position of the first element equal to Item, counting from zero.
项的索引(Vector: Vector, 项: 数字) -> 整数
int IndexOf(DivookaTensor1D Vector, double item)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — | |
| 项 | 数字 | — | The value to look for. |
返回
| 结果 | 整数 |
备注
The match is exact, so a value that was computed slightly differently (0.1 + 0.2 against 0.3, for example) is not found.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
范数
函数Another name for length
范数(Vector: Vector) -> 整数
int Norm(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
平移
函数Moves every element along by Offset positions, giving a new vector of the same length; the original is unchanged.
平移(Vector: Vector, 偏移: 整数, 补零: 真否) -> Vector
DivookaTensor1D Shift(
DivookaTensor1D Vector,
int offset,
bool fillZero = true)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — | |
| 偏移 | 整数 | — | How many positions to move; positive toward the start, negative toward the end. |
| 补零 | 真否 | True | True (the default) fills the freed places with 0; false fills them with the elements that fell off the other end, rotating the vector. |
返回
| 结果 | Vector |
备注
A positive offset moves elements toward the start: the element at position i + offset lands at position i, the first Offset elements fall off, and the freed places at the end are filled. A negative offset moves elements toward the end in the same way. An offset of zero gives a copy, and an offset as large as the length or larger gives all zeros whatever Fill Zero says.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
转为数组
函数Defensive copy
转为数组(Vector: Vector) -> 数字数组
double[] ToArray(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 数字数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
转为文本
函数ToString override
转为文本(Vector: Vector) -> 文本
string ToString(DivookaTensor1D Vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Vector | Vector | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
累积应用
函数重载 1/2
累积应用 -> (结果: 数字, 路径: 数字数组)
基础值: 数字
向量: 数字数组
函数: Accumulate Apply Functiondouble AccumulateApply(
double baseValue,
double[] vector,
out double[] path,
DivookaTensor1D.AccumulateApplyFunction function)Applies certain operation starting from base value on top of entire vector and return the resulting vector and final value
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 基础值 | 数字 | — | |
| 向量 | 数字数组 | — | |
| 函数 | Accumulate Apply Function | — |
返回
| 结果 | 数字 |
| 路径 | 数字数组 |
重载 2/2
累积应用 -> (结果: 数字, 路径: 数字数组)
基础值: 数字
向量: 数字数组
函数: Func<数字, 数字, 数字>double AccumulateApply(
double baseValue,
double[] vector,
out double[] path,
Func<double, double, double> function)Starts from Base Value and combines it with each element of Vector in turn using Function, giving the final value and every value along the way; a running total is (previous, element) => previous + element.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 基础值 | 数字 | — | The value to start from; it is also the answer when Vector is empty. |
| 向量 | 数字数组 | — | The elements to fold in, in order; must not be null. |
| 函数 | Func<数字, 数字, 数字> | — | Given previous computed result and current element value, compute the next value |
返回
| 结果 | 数字 |
| 路径 | 数字数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
加法运算
函数重载 1/2
加法运算(A: Vector, B: Vector) -> Vector
DivookaTensor1D op_Addition(
DivookaTensor1D a,
DivookaTensor1D b)Adds two vectors
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| B | Vector | — |
返回
| 结果 | Vector |
重载 2/2
加法运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_Addition(DivookaTensor1D a, double v)
Adds a scalar to every element
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
按位或运算
函数重载 1/2
按位或运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_BitwiseOr(DivookaTensor1D a, double v)
Append an element
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
重载 2/2
按位或运算(A: Vector, B: Vector) -> Vector
DivookaTensor1D op_BitwiseOr(
DivookaTensor1D a,
DivookaTensor1D b)Append an entire vector
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| B | Vector | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
除法运算
函数重载 1/2
除法运算(A: Vector, B: Vector) -> Vector
DivookaTensor1D op_Division(
DivookaTensor1D a,
DivookaTensor1D b)Divide element-wise
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| B | Vector | — |
返回
| 结果 | Vector |
重载 2/2
除法运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_Division(DivookaTensor1D a, double v)
Multiply every element by a scalar
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
异或运算
函数Exponent element-wise
异或运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_ExclusiveOr(DivookaTensor1D a, double v)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
向量
函数此节点没有文档说明。
重载 1/2
向量(值: 数字数组) -> Vector
DivookaTensor1D op_Implicit(double[] values)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字数组 | — |
返回
| 向量 | Vector |
重载 2/2
向量(向量: Vector) -> 数字数组
double[] op_Implicit(DivookaTensor1D vector)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 向量 | Vector | — |
返回
| 向量 | 数字数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
乘法运算
函数重载 1/2
乘法运算(A: Vector, B: Vector) -> Vector
DivookaTensor1D op_Multiply(
DivookaTensor1D a,
DivookaTensor1D b)Multiply element-wise
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| B | Vector | — |
返回
| 结果 | Vector |
重载 2/2
乘法运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_Multiply(DivookaTensor1D a, double v)
Multiply every element by a scalar
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
减法运算
函数重载 1/2
减法运算(A: Vector, B: Vector) -> Vector
DivookaTensor1D op_Subtraction(
DivookaTensor1D a,
DivookaTensor1D b)Subtract two vectors
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| B | Vector | — |
返回
| 结果 | Vector |
重载 2/2
减法运算(A: Vector, V: 数字) -> Vector
DivookaTensor1D op_Subtraction(DivookaTensor1D a, double v)
Subtract a scalar to every element
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — | |
| V | 数字 | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
取负运算
函数Gets negative
取负运算(A: Vector) -> Vector
DivookaTensor1D op_UnaryNegation(DivookaTensor1D a)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算
取正运算
函数Identity (no copy is made)
取正运算(A: Vector) -> Vector
DivookaTensor1D op_UnaryPlus(DivookaTensor1D a)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | Vector | — |
返回
| 结果 | Vector |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 向量
- 所属包
- 数值计算