
上QQ阅读APP看书,第一时间看更新
CHAPTER 05 处理矩阵与更高维数据
向量(Vector)对象相当于是Microsoft Excel表格的一列(row)或一行(column),同时存放着相同类型的数据。在真实的世界里,这是不够的,我们常碰上需要处理不同类型的数据的情况。
在数据中,一维数据称向量(Vector)对象、二维数据称矩阵(Matrix)对象,超过二维的数据称三维或多维数组(Array)对象,如下图所示。

向量一维(Vector)

矩阵二维(Matrix)

数组三维或更高维(Array)
此外,也可将Vector称一维Array,将矩阵(Matrix)称二维Array,其余则依维度数称N维Array。