An optical scheme of on-chip matrixing by phase-change based tunable weighting of photonic tensor unit