元編程參考文件

Weed 資料樹

11 個節點

本頁內容 11

加法

函數

Graph-friendly numeric longest-tree addition.

簽名
加法 -> 數字的 Cad Tree
    左側: 數字的 Cad Tree
    右側: 數字的 Cad Tree
CadTree<double> Add(CadTree<double> left, CadTree<double> right)

參數

名稱型別預設值說明
左側數字的 Cad Tree—
右側數字的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

建立資料樹

函數

Creates a tree in numeric lexicographic path order, concatenating duplicate branches in input order.

簽名
建立資料樹 -> T 的 Cad Tree
    路徑: 整數陣列陣列
    分支: T 陣列陣列
CadTree<T> Create(int[][] paths, T[][] branches)

參數

名稱型別預設值說明
路徑整數陣列陣列—
分支T 陣列陣列—

返回

結果T 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

展平數字

函數

Graph-friendly numeric flattening into {0}.

簽名
展平數字(樹: 數字的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> FlattenNumbers(CadTree<double> tree)

參數

名稱型別預設值說明
樹數字的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

翻轉矩陣

函數

Transposes a rectangular tree: item indices become branches; ragged input is rejected instead of inventing nulls.

簽名
翻轉矩陣(樹: T 的 Cad Tree) -> T 的 Cad Tree
CadTree<T> FlipMatrix(CadTree<T> tree)

參數

名稱型別預設值說明
樹T 的 Cad Tree—

返回

結果T 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

翻轉數字

函數

Graph-friendly rectangular numeric transpose.

簽名
翻轉數字(樹: 數字的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> FlipNumbers(CadTree<double> tree)

參數

名稱型別預設值說明
樹數字的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

升級數字為資料樹

函數

Graph-friendly numeric graft, appending the item index to each source path.

簽名
升級數字為資料樹(樹: 數字的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> GraftNumbers(CadTree<double> tree)

參數

名稱型別預設值說明
樹數字的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

匹配

函數

Matches two item-access trees using longest branches and longest lists. The deeper tree supplies output paths; depth ties favor the left input.

簽名
匹配 -> TResult 的 Cad Tree
    左側: TLeft 的 Cad Tree
    右側: TRight 的 Cad Tree
    組合方式: Func<TLeft, TRight, TResult>
CadTree<TResult> Match(
    CadTree<TLeft> left,
    CadTree<TRight> right,
    Func<TLeft, TRight, TResult> combine)

參數

名稱型別預設值說明
左側TLeft 的 Cad Tree—
右側TRight 的 Cad Tree—
組合方式Func<TLeft, TRight, TResult>—

返回

結果TResult 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

數字

函數

Creates a numeric tree with sorted, merged paths.

簽名
數字(路徑: 整數陣列陣列, 分支: 數字陣列陣列) -> 數字的 Cad Tree
CadTree<double> Numbers(int[][] paths, double[][] branches)

參數

名稱型別預設值說明
路徑整數陣列陣列—
分支數字陣列陣列—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

簡化

函數

Removes common leading indices while retaining at least one index in each path.

簽名
簡化(樹: T 的 Cad Tree) -> T 的 Cad Tree
CadTree<T> Simplify(CadTree<T> tree)

參數

名稱型別預設值說明
樹T 的 Cad Tree—

返回

結果T 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

簡化數字

函數

Graph-friendly removal of common path prefixes.

簽名
簡化數字(樹: 數字的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> SimplifyNumbers(CadTree<double> tree)

參數

名稱型別預設值說明
樹數字的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計

修剪路徑

函數

Removes trailing path indices and merges resulting branches. Removing the entire path maps to {0}.

簽名
修剪路徑(樹: T 的 Cad Tree, 層級: 整數) -> T 的 Cad Tree
CadTree<T> TrimPaths(CadTree<T> tree, int levels = 1)

參數

名稱型別預設值說明
樹T 的 Cad Tree—
層級整數1

返回

結果T 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 資料樹
所屬包
電腦輔助設計