gpt4 book ai didi

c# - 数据集的维数有一个词吗?

转载 作者:行者123 更新时间:2023-11-30 20:44:05 24 4
gpt4 key购买 nike

我有一些代码可以生成一些代码,我想将生成的数据结构的维数存储在一个变量中。我正在寻找这个变量的正确名称。例如,int应具有值 0,List<int>应具有值 1,List<List<int>>应具有值 2,依此类推。

有没有集合论或其他方面的词来描述这个数字? (起初我以为这是基数,但显然这是集合的大小,而不是集合的嵌套性......)

最佳答案

您要查找的词似乎是 rank

In computer programming, rank with no further specifications is usually a synonym for (or refers to) "number of dimensions"; thus, a bi-dimensional array has rank two, a three-dimensional array has rank three and so on. Strictly, no formal definition can be provided which applies to every programming language, since each of them has its own concepts, semantics and terminology; the term may not even be applicable or, to the contrary, applied with a very specific meaning in the context of a given language.

linear algebra 中也使用了相同的术语:

In linear algebra, the rank of a matrix A is the size of the largest collection of linearly independent columns of A (the column rank) or the size of the largest collection of linearly independent rows of A (the row rank). For every matrix, the column rank is equal to the row rank. It is a measure of the "nondegenerateness" of the system of linear equations and linear transformation encoded by A. There are multiple equivalent definitions of rank. A matrix's rank is one of its most fundamental characteristics.

另请参阅 this discussion on the definition of rank as related to sets来自数学堆栈交换。

最后this是 OPs 雇主如何为数组命名它:D

关于c# - 数据集的维数有一个词吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29810963/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com