update vector calc, matrix calc