added op to matrix func