public class VectorSum { // 二维向量求和函数 public static tdvector sum(tdvector vec1, tdvector vec2) { if (vec1.getRows() != vec2.getRows() || vec1.getCols() != vec2.getCols()) { throw new IllegalArgumentException("两个向量的维度不匹配"); } tdvector result = new tdvector(v...