sum

matlab实例
sum(abs(beta_new_o))
python实例
sum(abs(beta_new_o))
备注
beta_new_o是(1,n)矩阵,所以没加axis
转python说明
(m,n)求sum一定要加axis,matlab默认按列,numpy默认全部。