求向量累加和向量:cumsum(X)求向量累乘积向量:cumprod(X)求矩阵每一列的累加和:cumsum(A)、cumsum(A,1)求矩阵每一列的累积积:cumprod(A)、cumprod(A,1)求矩阵每一行的累加和:cumsum(A,2)求矩阵每一行的累积积:cumprod(A,2)