test layer forward ok
use seperate element to compute matrix