matrix calc, vector calc update